[TYPO3] excludeUidList and REGISTER list

JoH info at cybercraft.de
Wed May 3 03:56:49 CEST 2006


> I have a menu in which I would like to hide a list of pages which is
> stored in a REGISTER.  This REGISTER is instanciated using a query
> which grabs the list from a DB table.
>
> It seems that the excludeUidList property takes only a list of
> integers, but not a list of page UIDs/stdwrap. Therefore, the
> following does not work:
>
> excludeUidList = register:reg_myExclusionList
>
> Is there any way to work around that, keeping in mind that I cannot
> use a constant.

You can use "if" on any TMENUITEM.

So something like this should be working:

NO {
  allStdWrap.if {
    value.data = register:reg_myExclusionList
    isInList.field = uid
    negate = 1
  }
}

Joey

-- 
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your knob sometimes!)
Dieter Nuhr, German comedian
openBC: http://www.cybercraft.de





More information about the TYPO3-english mailing list