菜单

nav_title的TS应用

2010年10月12日 - typoscript

level:1

Gets the current level in the rootline.

levelfield:<position>,<fieldname>[,slide]

<position> position in rootline Examples: 0: Level 0 1: Level 1 etc -1: The Level of this Page -2: One Level Up etc <fieldname> name of a field of table pages. (see notes) “ , slide” parameter forces a walk to the bottom of the rootline until there’s a “true” value to return.

  1. Get the subtitle of
10 = TEXT
10.data = levelfield : -1 , subtitle  , slide

Notes: In order to enable a field for sliding add the following to you typo3conf/localconf.php

  1. enable fields subtitle and nav_title for sliding in levelfield
 $TYPO3_CONF_VARS['FE']['addRootLineFields'] = ',subtitle,nav_title';

发表评论

电子邮件地址不会被公开。 必填项已用*标注