Показать сообщение отдельно
Старый 20.08.2008, 19:11   #19
dmartynenko
Senior Member
 
Аватар для dmartynenko
 
Регистрация: 20.07.2007
Адрес: Беларусь, Минск
Сообщений: 957
Отправить сообщение для dmartynenko с помощью ICQ
По умолчанию

Может быть эта информация будет полезной для решения вопроса:

http://typo3.org/documentation/docum....1.0/view/2/2/

Цитата:
getText - get content from the $cObj->data-array[header]. This returns a value from somewhere in PHP-array, defined by the type. The syntax is "type : pointer".

leveltitle, leveluid, levelmedia: [levelTitle, uid or media in rootLine, 0- , negative = from behind, ” , slide” parameter forces a walk to the bottom of the rootline until there's a ”true” value to return. Useful with levelmedia.]

levelfield: Like ”leveltitle” et al. but where the second parameter is the rootLine field you want to fetch. Syntax: [pointer, integer], [fieldname], [”slide”]

get the title of the page on the first level of the rootline:

= leveltitle : 1

get the title of the page on the level right below the current page AND if that is not present, walt to the bottom of the rootline until there's a title:

= leveltitle : -2 , slide

get the id of the root-page of the website (level zero)

= leveluid : 0

Gets the value of the user defined field ”user_myExtField” in the root line (requires additional config in TYPO3_CONF_VARS to include field!)

= levelfield : -1 , user_myExtField , slide
Еще там же второй способ:

Цитата:
Gets the title of the page right before the start of the current website:

= fullRootLine : -1, title

fullRootLine : This gets the title ”1. page before” in a page tree like the one below provided we are are the page ”Here you are!” (or ”Site root”) and this TypoScript is in the template with root at ”Site root”. Red numbers indicate what values of keynumber would point to:

- Page tree root -2

|- 1. page before -1

|- Site root (root template here!) 0

|- Here you are! 1

fullRootLine :

Getting a value from the rootline (TSFE->rootLine) going all the way to the root of the page tree.

[keynumber, fieldname, ”slide”]

Keynumber is relative to the current site root, so negative numbers refer to subsequent levels below the site root. Fieldname is the name of the datafield to get. For ”slide”, see levelmedia type above.
Для этой же цели можно использовать меню с .special = rootline.
Но по производительности последний способ будет явно хуже.
dmartynenko вне форума   Ответить с цитированием