[TYPO3-commerce] HOWTO create a 'read more' link at the end of the teaser text
Franz Koch
typo.removeformessage at fx-graefix.de
Thu Oct 25 14:40:02 CEST 2007
Hi Michiel,
>> due to the (in my eyes stupid) processing of the TS inside commerce,
>> your setup will not work. That's because commerce checks for
>> 'setCommerceValues' only in the first level of the TS (and as far as I
>> remember inside 'stdWrap.'). So the nested arguments in your case are
>> not detected by commerce and thus will not be replaced with the
>> correct paramters.
>>
>> Instead of parsing the TS-tree for the phrase 'setCommerceValues'
>> it'll be far better to just register the typolink parameters from
>> within php, so that they are available EVERYWHERE in TS and so that
>> this would work:
>> -----
>> teaser.postCObject.20 {
>> typolink.parameter = {register:commerce_linkToProduct}
>> typolink.parameter.insertData = 1
>> }
>
> Hi Franz,
>
> You seem to be a commerce guru. I think a lot of people would benefit if
> you found some time to write up a feature request in the bug tracker. If
> not, I'll post one, but you seem to be the more knowlegable person here.
>
> Scripting commerce via TS would become a lot more powerful if this issue
> was addressed by the developers.
well - I'm not sure if I'm a commerce guru - I only realized 1 project
with it so far, had some looks in the source code for that and rewrote
some buggy stuff.
When I noticed the above mentioned, I tried to modify the mentioned
parts and provide a patch, but after I changed it, some other part's
didn't work correct anymore - parts that where somehow nested and called
from other places. I didn't have the time to investigate into that then
and don't have it right now.
Maybe I find some time on my next commerce project to finish this. Same
with the priceFromNet story I discovered and some other things. Overall
I would change a lot of places in commerce to become really flexible -
but that's nothing that can be done with patches as it might be a bit to
big for that.
--
Greetings,
Franz
More information about the TYPO3-project-commerce
mailing list