[TYPO3] Inherit meta tags in subpages?
Peter Klein
peter at umloud.dk
Thu Feb 16 09:34:05 CET 2006
Hi Heiner. That's easy to do. (You still need to add the description &
keywords fields to the rootLine)
Here's an example that merges the keywords fields all the way to the root
page.
-- cut --
lib.mergedKeywords = COA
lib.mergedKeywords {
10 = TEXT
10.data = fullRootLine:0,keywords
10.wrap = |,
10.required = 1
20 < .10
20.data = fullRootLine:1,keywords
30 < .10
30.data = fullRootLine:2,keywords
40 < .10
40.data = fullRootLine:3,keywords
}
page.meta.KEYWORDS.cObject < lib.mergedKeywords
-- cut --
If your site has more than 4 levels, you can always add more TEXT objects to
the COA.
--
Peter Klein/Umloud Untd
"Heiner Lamprecht" <heiner at heiner-lamprecht.net> skrev i en meddelelse
news:mailman.368.1140038327.3122.typo3-english at lists.netfielders.de...
> Hi Peter,
>
> Thanks for your tip. It works, but is not completely, what I want
> to realize. The problem is the "page.meta.KEYWORDS.override.data".
> I don't want to _overwrite_, but to _append_ the keywords. That
> means, that a page shall contain it's own keywords, all keywords of
> the pages in rootline, and global keywords.
>
> Heiner
>
> --
> heiner at heiner-lamprecht dot net GnuPG - Key: 9859E373
> Fingerprint: 3770 7947 F917 94EF 8717 BADB 0139 7554 9859 E373
More information about the TYPO3-english
mailing list