[TYPO3-english] Use In Cookie stored PageID in TMENU

Bernd Wilke t3n at pi-phi.de
Fri Apr 1 08:37:51 CEST 2016


Am 31.03.2016 um 18:26 schrieb Bastian Holzem:
> Hello,
>
> i wanted to show the last 3 viewed pages an Menu-Links, which i stored
> in a Cookie
>
> My Menu-Links looks like this
>
> 10 = HMENU 10 {
>    special = list
 >    special.value = 10,11,12
> }
>
> but i can't insert the IDs from COOKIES into "special.value"
> special.value = global : _COOKIE | lastvisited_1
>
> how could i solve this?
>
special.value is accepts only a string (no reference to data)
but as all in typoscript has stdWrap you can do a .dataWrap
   special.value.dataWrap = {global : _COOKIE | lastvisited_1}|
or try to access data immediately. (keep in mind: this is no TEXT 
object: append '.data' and do not replace 'value')
so you may try:
   special.value.data = global : _COOKIE | lastvisited_1

the last attempt would be to use a cObject. This can be used everywhere 
to insert a complex object.
   special.value.cobject = TEXT
   special.value.cobject.data = global : _COOKIE | lastvisited_1

bernd


More information about the TYPO3-english mailing list