Hey Steffen,

On 19-9-2011 23:39, Steffen Gebert wrote:
I have an HMENU with special=directory, displaying subpages of the
current page as shiny buttons:

temp.buttons {
special = directory
special.value = {$rootpage}
1 = GMENU
1.NO = 1
1.NO {
...
}
}

Now I want to filter out all pages, which have an empty "media" field
(as the created buttons include that image).

The HMENU is the entire menu as a whole.
Inside that is the GMENU which represents a level (you could have 1=TMENU, 2=GMENU, etc.) Inside that is for each element the menu item state (NO, ACT, etc.). For text menus you can find the properties in TMENUITEM, for graphical menus you find the properties below the list for GMENU (heading "Additional properties for Menu item states").

In this latter list there is for example:
allStdWrap.if.isTrue.field = media

A similar example for a TMENU:

10 = HMENU
10 {
        wrap = <ul>|</ul>
        entryLevel = 1
        1 = TMENU
        1 {
                NO {
                        allWrap = <li>|</li>
                        allStdWrap.if.isTrue.field = media
                }
        }
}


--
Kind regards / met vriendelijke groet,

Jigal van Hemert.
_______________________________________________
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english

Reply via email to