× Here you can get community support related to Tag Meta.

Question about custom header and articles

  • confluence
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 4 months ago - 10 years 4 months ago #2676 by confluence
Question about custom header and articles was created by confluence
We are using WebTrends, and they have custom meta tags that need to be included in our article pages for Joomla. We are inserting the custom tags in "Custom Header" like:
<meta name="WT.cg_n" content="[Category]" />
<meta name="WT.cg_s" content="[ArticleName]" />

So, for links like /index.php/MainArticle it displays correctly. When we add a custom WT.cg_s for a sub page like /index.php/MainArticle/SubArticle it still displays the WT.cg_s for the MainArticle and is not showing the custom tag for the SubArticle.

SubArticle example:
<meta name="WT.cg_n" content="[Category]" />
<meta name="WT.cg_s" content="[SubArticleMeta]" />

This is still displaying the WT.cg_s for the MainArticle in the source code.

Is there a way to add the meta tag so that it displays on deeper menu items?
Last edit: 10 years 4 months ago by confluence.

Please Log in or Create an account to join the conversation.

More
10 years 4 months ago #2677 by admin
Replied by admin on topic Question about custom header and articles
Hi,
this is because the URL condition in your rule matches also with sub pages. To avoid this just modify the URL as follow:
URL: ^/index\.php/MainArticle$

The dollar means "end with" (is a regular expression) so this will not match with sub pages.

Maybe a better solution could be to create a rule that matches both pages and sub pages:
URL: ^/index\.php/MainArticle

And use placeholders to create the content attr for WT.cg_s. It all depends on how is possible to extract the [ArticleName] and/or [SubArticleMeta] from the given URL.

Kind regards,
Luigi
The following user(s) said Thank You: confluence

Please Log in or Create an account to join the conversation.

  • confluence
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 4 months ago #2679 by confluence
Replied by confluence on topic Question about custom header and articles
Thank you! Adding the $ to the URL worked great.

Please Log in or Create an account to join the conversation.

More
10 years 4 months ago #2681 by admin
Replied by admin on topic Question about custom header and articles
U're welcome.

Please Log in or Create an account to join the conversation.

Time to create page: 0.183 seconds