web log
Monday, 02.01.2012
seo for a21glossary
set <title>-tag and and meta-description for single sites from a21gloassary
checks if a uid for a21glossary is set and gets the information from the database. i normally have the title-tag in page.headerData.5. change it, if you have another id.
code for typoscript:
[globalVar = GP:tx_a21glossary|uid > 0] page.headerData.5 { cObject = CONTENT cObject { table = tx_a21glossary_main renderObj = TEXT renderObj.field = short } wrap = <title>Sitetitle - Glossar - |</title> } temp.meta { cObject = CONTENT cObject { table = tx_a21glossary_main renderObj = TEXT renderObj.field = longversion } } page.meta.description < temp.meta [end]