Metadescriptions Detailview
criwe opened this issue · comments
HI!
One question: is it possible to override the metadescription in the detailview (i.e. with the term description)?
Thank you!
Best,
Christoph
Hi!
The line:
[traverse(request.getQueryParams(), 'tx_dpnglossary_glossary/term') > 0]
determins if I´m in the detailview. That fine!
I tried to get some infomations (the name of the term) into the metadescription, but output is "RECORDS"?!
temp.termdesc = RECORDS
temp.termdesc {
source = {GP:tx_dpnglossary_glossary|term}
source.htmlSpecialChars = 1
source.insertData = 1
tables = tx_news_domain_model_news
conf.tx_dpnglossary_domain_model_term >
conf.tx_dpnglossary_domain_model_term = TEXT
conf.tx_dpnglossary_domain_model_term.field = name
}
page.meta.description < temp.termdesc
page.meta.description.replace = 1
Any Ideas?
Thanks!
Best,
Christoph
So, got it, maybe that helps someone:
[traverse(request.getQueryParams(), 'tx_dpnglossary_glossary/term') > 0]
temp.termMeta = RECORDS
temp.termMeta {
source = {GP:tx_dpnglossary_glossary|term}
source.htmlSpecialChars = 1
source.insertData = 1
tables = tx_dpnglossary_domain_model_description
conf.tx_dpnglossary_domain_model_description >
conf.tx_dpnglossary_domain_model_description = TEXT
conf.tx_dpnglossary_domain_model_description.field = text
conf.tx_dpnglossary_domain_model_description.crop = 156 | ... | 1
conf.tx_dpnglossary_domain_model_description.stripHtml = 1
}
page.headerData.6 >
page.headerData.6 = COA
page.headerData.6 < temp.termMeta
page.headerData.6.wrap =
[else]
...
[end]