[TYPO3-english] tt_content.menu.default display name first level parent page
bernd wilke
t3ng at bernd-wilke.net
Thu Feb 6 15:02:30 CET 2014
Am 06.02.14 14:32, schrieb Muriel le Pair:
> bernd wilke schreef op 06-02-14 14:05:
>> hm. maybe I got it now:
>>
>> for each page a BE-editor takes a list of pages which should be
>> displayed as a menu in the kind of:
>>
>> <section of page1> - <name of page1>
>> <section of page2> - <name of page2>
>> <section of page3> - <name of page3>
>> <section of page4> - <name of page4>
>>
>> with the selection you get the Ids of page1 to page4
>
> Yep that's correct.
>
>> if you now want the title of the parent page you need to enhance the
>> title rendering (with stdWrap) via a query (.wrap.cObject = RECORD) to
>> the parent page's title field.
>> in case of more levels between you need to act recursively (which can
>> not be realized in typoscript) or explicit iterated (you may use
>> TS-Conditions for individual iteration levels per page)
>
> There are 6 sections, the names of the sections are static.
> The page tree contains multiple levels, so it will not be sufficient to
> get the title of the parent page.
>
> Since there are only 6 sections, I won't mind hardcoding them.
> It would be of great help if I would figure out a way of knowing what's
> the PIDinRootline of the selected page in the menu.
PIDinRootline is a Condition for the current page.
either I would use a userfunc which might return the title in an easy ways.
or build up a complex typoscript with conditions abiout the current
treelevel to decide how many steps upward I need to use wrap.cObject =
RECORD.
http://stackoverflow.com/questions/19835797/typo3-parent-page-field-for-title-in-typolink
look for the '5 = TEXT'
BTW have a look into this thread:
http://lists.typo3.org/pipermail/typo3-english/2007-August/042123.html
bernd
--
http://www.pi-phi.de/cheatsheet.html
More information about the TYPO3-english
mailing list