[TYPO3-english] Unable to Get Page alias in menu typo script for first level

bernd wilke t3ng at bernd-wilke.net
Wed Sep 3 15:09:17 CEST 2014


Am 03.09.14 11:56, schrieb yogesh shishangiya:
> Hi Can You Able to Giving me Brief Explanation what are you saying ?

while wrapItemAndSub normaly is no cObject and contain only static text
wrapItemAndSub = <li class="{field:alias}">|</li>

you can modify this behaviour with the declaration of
wrapitemAndSub.cObject
as a cObject of your choice.

I choose TEXT to get a clear value and a clear dataWrap
but I could have used also a COA:
wrapitemAndSub.cObject = COA
wrapitemAndSub.cObject {
	10 = TEXT
	10.value = <li class="

	20 = TEXT
	20.field = alias

	30 = TEXT
	30.value = ">|</li>
}


as (nearly) all elements in TYPO3 got stdWrap since 4.6 a cObject might 
not neccessary at all:
wrapItemAndSub = |
wrapItemAndSub.stdWrap.dataWrap = <li class="{field:alias}">|</li>

all should result in a replacement of the field placeholder with the 
field value

bernd
-- 
http://www.pi-phi.de/cheatsheet.html


More information about the TYPO3-english mailing list