featdd / dpn_glossary

Glossary extension for TYPO3
http://typo3.org/extensions/repository/view/dpn_glossary
GNU General Public License v2.0
20 stars 29 forks source link

Metadescriptions Detailview #154

Closed criwe closed 4 years ago

criwe commented 4 years ago

HI!

One question: is it possible to override the metadescription in the detailview (i.e. with the term description)? Thank you! Best, Christoph

criwe commented 4 years ago

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

criwe commented 4 years ago

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]