[TYPO3-english] Overwrite metatags with TS

Jan Bednarik info at bednarik.org
Mon Oct 13 21:36:59 CEST 2014


Hi,

.data is of type getText only, so there is no way how to pass GET 
inside. You can do this with CONTENT. Sth. like:

page.meta.description {
cObject = CONTENT
cObject {
select {
table = tt_content
uidInList.data = GP:my_uid
}
renderObj = TEXT
renderObj.field = uid
}
}

Jan

Dne 13. 10. 2014 10:57, Bert Hiddink [BENDOO e-work solutions] napsal(a):
> Hello,
>
> In order to overwrite metatags dynamically via TS, I noticed that the
> following works:
>
> page.meta.description {
>     data=DB:tt_content:5:uid
> }
>
> However, now I want combine this with a GP-var, fe:
>
> page.meta.description {
>     data=DB:tt_content:GP:my_uid:uid
> }
>
> page.meta.description {
>     data=DB:tt_content:{GP:my_uid}:uid
> }
>
> Neither one of these works, what do I miss here?
>
> Another option would be via a lib-object:
>
> lib.test = TEXT
> lib.test.value=my description
>
> page.meta {
>      description < lib.test
> }
>
> This does not work neither, do not see why. Any ideas?
>
> Thanks in advance!
>
> Regards,
> Bert



More information about the TYPO3-english mailing list