entwicklung, TypoScript

Informations out of the rootline

With the extension danp_rootlineinfos you can access the first nonempty value out of the rootline.

Possible field of applications (example usages) are:

Get the first found subtitle

temp<plugin.tx_danprootlineinfo_pi1
temp.field=subtitle

 

Use the first found Metatags

Therefore we configure the Extension "metatags" like this:

page.headerData.999.local.description.preUserFunc=tx_danprootlineinfo_pi1->main
page.headerData.999.local.description.preUserFunc.field=description


page.headerData.999.local.keywords.preUserFunc=tx_danprootlineinfo_pi1->main
page.headerData.999.local.keywords.preUserFunc.field=keywords

Download Extension:

Key: danp_rootlineinfo
Download: Extension danp_rootlineinfo

blog comments powered by Disqus
blogroll