[TYPO3-dev] Hook into pagesRepository

Kay Strobach typo3 at kay-strobach.de
Tue Sep 3 20:19:30 CEST 2013


wrapItemAndSub.stdWrap.dataWrap = ...{field:layout}|...

should do it
untested

Regards
Kay

Am 03.09.13 09:29, schrieb Philipp:
> But how can i do something like that:
> wrapItemAndSub = <li class="navitem
> layout-{HERE_COMES_THE_TRANSLATED_LAYOUT}">|</li>
> i will never become a typoscript-expert....
> 
> If i hook into the page selection (seems there is one hook
> \TYPO3\CMS\Frontend\Page\PageRepositoryGetPageHookInterface) i could
> just exchange the layout key with my string and do it like <li
> class="navitem layout-{field:layout}">|</li>


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

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

Answer was useful - feel free to donate:
  -
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=KPM9NAV73VDF2
  - https://flattr.com/profile/kaystrobach




More information about the TYPO3-dev mailing list