[TYPO3-dev] get used template uid list of the current page

Kay Strobach typo3 at kay-strobach.de
Mon Aug 22 11:14:34 CEST 2011


Hi guys,

after some research if found the following:

array of rootline
	TSFE:tmpl|absoluteRootLine

index of the nearest template in array of rootline

	TSFE:tmpl|outermostRootlineIndexWithTemplate

So it would be nice if i could access:

	TSFE:tmpl|absoluteRootLine[TSFE:tmpl|outermostRootlineIndexWithTemplate]|uid

Is there any syntax in TS to achieve that?
Can you please give me a hint for the syntax.

Regards
Kay

Am 21.08.2011 14:22, schrieb Kay Strobach:
> Hello guys,
> 
> is it possible to get the list of used templates (similar to rootline)
> on a page via TS?
> 
> Otherwise i would like to have the nearest parent template's uid of a page.
> 
> This snippet works sometimes, but doesn't output the nearest template
> always :(
> 
> 	outputCssFile {
> 		data = TSFE:tmpl|rowSum|0|0
> 		dataWrap = typo3temp/sass/output-from-template-nr-|.css
> 	}
> 
> What i want to achieve is to identify the templates either with uid or
> with something like the template rootline (not the pagerootline).
> 
> Thanks in advice
> Kay


-- 
http://www.kay-strobach.de - Open Source Rocks

TYPO3 .... inspiring people to share!
Get involved: http://typo3.org

Answere was usefull: https://flattr.com/profile/kaystrobach




More information about the TYPO3-dev mailing list