[TYPO3-english] Flexible menu starting points

Pero Peric pperic at mail.com
Tue Jul 22 18:57:56 CEST 2014


On 22.7.2014. 17:48, David Gurk wrote:
> special.value can be a stdWrap so you can do a lot of things. =)
>
> lib.menu = HMENU
> lib.menu {
>    special = directory
>    special.value.stdWrap.cObject
> }
>
> http://docs.typo3.org/typo3cms/TyposcriptReference/ContentObjects/Hmenu/Index.html#hmenu-special-value

Thx. for pointing that out. So, would something like this be possible:

I'm for example on a page J in a page tree that looks like this:

A-->
     B
     C --> D
       --> E
       --> F --> G  --> I
                    --> J

and i have a checkbox on a page C called "Menu tree root point", so i 
want my menu to look like this:

D
E
F --> G  --> I
          --> J

Is it possible now something like this:

special.value.field = checkbox_value // parent_page_checkbox_value // 
grandparent_page_checkbox_value // grandgrandparent_page_checkbox_value

So, if checkbox value on J page is null then check value of checkbox on 
page G (parent). If that one is also null then check grandparent 
checkbox value on page F. If that one is null then check one on page C. 
Number of level would be fixed, for example to 4.

If this idea is not too stupid how can i get field values from parent 
page levels? Thx!

Regards.











More information about the TYPO3-english mailing list