Allow Querystring value to be inserted into meta tag


Currently the skin object allows for meta tags to be inserted in (or removed from) the header.
One very valuable enhancement would to allow for the text of a Querystring to be inserted into a meta tag. For example for a page describing different products, where the product on the page is determined by a querystring 'productname' the following would be very useful:
<fortyfingers:STYLEHELPER ID="STYLERHELPER5" AddMetaTags="Name1:This page describes our [QS:productname] product, providing information in terms of its price, color and size|Name2:Value2" runat="server" />


Timo_Design wrote Dec 22, 2011 at 10:23 AM

Ok seems like a valid addition, I add it in the next version.
Thanks for the suggestion.

idumlupinar wrote Dec 30, 2011 at 12:17 PM

Timo I'm using News Articles module for my DNN website. If i filter module to display 10 articles at listing page, the second and so on listing pages are using /currentpage/ in urlformat. However, they don't have unique meta title and description tag.

I tried to use IfURL=current function but, seems i am not using correct format or something is broken at latest release, would you please help on this matter?

Cheers and happy new year.

Timo_Design wrote Dec 30, 2011 at 1:01 PM

Hi Ismet,

Could you add this to the discussion tab?
I prefer to keep issues and questions apart.

Should be possible to do what you need BTW... Ill have a look at it.

Thanks, Timo

idumlupinar wrote Dec 30, 2011 at 1:41 PM

Timo_Design wrote Dec 30, 2011 at 5:20 PM

Ok, I have a beta version where the Meta tag supports Tokens.
It can be downloaded here: http://stylehelper.codeplex.com/releases/view/79650
(I'm moving the stylehelper to it's own project in the future)

I decided that for this use case changing an existing meta tag is better then first removing it and then adding another one.
You can also add a new one using the AddToHead attribute (which also supports Tokens, but cannot reference the original Meta tags value)

Let me know if it works for you...

eoghano wrote Dec 30, 2011 at 6:30 PM

Timo, Thanks for posting this Beta version which I will test later. Before doing so can you clarify the best way to have the meta description tag updated with a token value from the QS? Such a tag can already exist (via page settings in DNN) but it's not clear how a token value from the QS could be injected into it using this beta skin object. Or is it a case of keeping the meta description tag completely empty in the page settings and then building the meta description tag using the skin object (and a QS token)? Thanks and happy 2012!

eoghano wrote Dec 30, 2011 at 6:33 PM

Timo, Ignore my previous posting a few moments ago. I just read all the description of the beta release.

Timo_Design wrote Dec 30, 2011 at 11:28 PM

Ok, thanks.
Please let me know if you find any issues.


eoghano wrote Jan 11, 2012 at 1:56 PM

Timo, just to let you know that this worked perfectly for me. many thanks again.

Timo_Design wrote Jan 12, 2012 at 6:52 AM

Ok, great. Thanks for your feedback.

wrote May 25, 2012 at 9:13 AM

wrote Feb 14, 2013 at 2:09 AM

wrote May 16, 2013 at 8:04 AM

wrote May 16, 2013 at 8:04 AM

wrote Jun 14, 2013 at 6:49 AM