[TYPO3-dev] alwaysActivePIDlist
JoH asenau
info at cybercraft.de
Mon Oct 23 12:39:09 CEST 2006
> the property alwaysActivePIDlist is new since Version 4
> Now when i set
>
> alwaysActivePIDlist = 4,7
>
> it works fine.
>
> Next step was trying to set it dynamically, but it doesn't work
>
> alwaysActivePIDlist < tmp.pids
> or
> alwaysActivePIDlist.(stdWrap.)dataWrap =
> {register:ttnewsCat1},{register:ttnewsCat2}
>
> failed.
>
> How is the right way to set this property dynamic ?
Read TSref:
alwaysActivePIDlist -> list of integers
Since there is nothing like "list of integers / stdWrap" this means you
can't set it dynamically.
A workaround could be using conditions.
I.e. for different values based on the current rootline of the page
[PIDinRootline = 1]
temp.whatever.alwaysActivePIDlist = 1,2,3,4
[global]
[PIDinRootline = 2]
temp.whatever.alwaysActivePIDlist = 2,3,4,5
[global]
[PIDinRootline = 3]
temp.whatever.alwaysActivePIDlist = 3,4,5,6
[global]
This is not completely dynamic though.
HTH
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
T3 cookbook: http://www.typo3experts.com
More information about the TYPO3-dev
mailing list