[Typo3-shop] Avoid extension chaos please
Volker Graubaum
vg_typo3 at e-netconsulting.de
Sat Nov 27 15:23:29 CET 2004
Hi Franz,
>> That's why I asked if there is a project leader who can decide about
>> this?
>> But for me this seems ok.
>
> So I will make the project leader now for tt_products. Or has someone
> else wanted to do this job?
No, would be great if you could do this :-).
> I have one shop to test. But it would be better, if also others test it
> with their shops.
I will as soon as the changes from zk_products are in your release :-)
> I am now not quite sure how I can program CONSTANTS, so I have always
> used only SETUP variables.
> I can access this via $this->conf["outputFolder"] only when I have
> written it into the SETUP field and not from the CONSTANTS field of the
> template.
right, you`ve to do it like this
// Constants
plugin.tt_prodcuts.outputfolder = Youroutputfolder
// setup
plugin.tt_prodcuts.outputFolder = {$plugin.tt_prodcuts.outputfolder}
Why doing it like this? It's easier to change for updates.
For example thing about wrapping a color
first it was
// Constants
plugin.myExt.myColor = #cccccc
// setup
plugin.tt_prodcuts.wrap1 = <font color="{$plugin.myExt.myColor}"> | </font>
Then we change to css in an later version like
// setup
plugin.tt_prodcuts.wrap1 = <span
style="color:{$plugin.myExt.myColor};"> | </span>
If you changed the color in the constants it will still use the new
better css layout with your color.
> I think it is better if I finish this first. Later I will continue with
> bringing in the next tt_products derivates.
Okay, maybe contact Klaus Zierer? I thing he made a lot of change, and
maybe he is still working on it?
If it is like that, xou could maybe work together?
Greetings Volker
More information about the TYPO3-project-tt-products
mailing list