> I have a plugin which has few codes to show different content.
> In TS I need to show this plugin with this code.
>> ex. TS:
> plugin.user_nameplugin_pi1.code = DEMO1
> plugin.user_nameplugin_pi1.code = DEMO2
The problem is in the snippet above: You simply override the code instead of
creating an additional entry.
TypoScript is working like an array with keys and values:
plugin {
user_nameplugin_pi1 {
code = DEMO1
}
}
Now the array key "code" has got the value DEMO1.
If you write this line
plugin.user_nameplugin_pi1.code = DEMO2
It will become DEMO2 overriding the old value.
The question is, what you want to acchieve with the values DEMO1 and DEMO2
in your plugin?
HTH
Joey
--
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your gob sometimes!)
Dieter Nuhr, German comedian
Xing: http://contact.cybercraft.de
Twitter: http://twitter.com/bunnyfield
TYPO3 cookbook (2nd edition): http://www.typo3experts.com
TYPO3 workshops: http://workshops.eqony.com