[TYPO3-dev] alwaysActivePIDlist

Peter Russ peter.russ at 4many.net
Mon Oct 23 16:45:38 CEST 2006


Steffen Kamper schrieb:
> "Martin Kutschker" <martin.kutschker-n0spam at no5pam-blackbox.net> schrieb im 
> Newsbeitrag 
> news:mailman.1.1161610860.20934.typo3-dev at lists.netfielders.de...
>> Dmitry Dulepov schrieb:
>>> Hi!
>>>
>>> Steffen Kamper wrote:
>>>> i know that it is list of integer but i didn't know that copiing from a 
>>>> textobject with Integerlist as value fail.
>>>> I hoped that this was only cause my mistake.
>>> This is a common mistake :) You do not compy TEXT object, you copy its 
>>> definition! I.e. if you do:
>>>
>>> tmp.ipds = TEXT
>>> tmp.pids.value = 1,2,3
>>> hmenu.alwaysActivePIDlist < tmp.pids
>>>
>>> what you get is:
>>>
>>> hmenu.alwaysActivePIDlist = TEXT
>>> hmenu.alwaysActivePIDlist.value = 1,2,3
>>>
>>> which is obviously wrong.
> 
> exactly !
> 
>> Maybe we could add a "value-copy" into TS. Or we could create a function 
>> for it:
>>
>> obj1.prop := objVal(obj2)
>>
>> Masi
> 
> good Idea - then it would be possible with each TS Var !
> 

Bad idea IMHO as this is not clean! It would be better to add stdWrap to 
all items based on string/int/array as this is more flexible than just 
the workaround.

Regs. Peter.


-- 
Fiat lux!
Docendo discimus.
_____________________________
4Many® Services
openBC: http://www.openbc.com/go/invuid/Peter_Russ




More information about the TYPO3-dev mailing list