[TYPO3-english] "if" clause in HMENU special.directory

Steffen Gebert steffen.gebert at typo3.org
Mon Sep 19 23:39:02 CEST 2011


Hi TypoScript gurus,

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).

This should somehow be possible with HMENU.if.isTrue - but is there a 
way except constructing a database query for each page? So can I somehow 
access the current page record in the "if" clause?

temp.buttons.if.isTrue.whatever?

Thanks!

Kind regards
Steffen

-- 
Steffen Gebert
TYPO3 v4 Core Team Member
TYPO3 Server Administration Team Member

TYPO3 .... inspiring people to share!
Get involved: http://typo3.org


More information about the TYPO3-english mailing list