[TYPO3-commerce] Adding attributes to Link ###PRODUCT_LINK_DETAIL###

Wild Wild Web - Internetservices mail at wild-wild-web.de
Fri Oct 26 12:35:06 CEST 2007


Hi Franz,

your posting is giving me hope...
I removed the wrapping marker in the list view part of the template <!-- 
###CATEGORY_ITEMS_LISTVIEW_2### begin-->.
It still didn't work. No link tag at all was generated/wrapped around 
the title after this change.
So I tried to add a 'read more' link to the product title using the 
'teaser proposal' posted here a few days ago.

plugin.tx_commerce_pi1.listView.products.fields {
    title >
    title = TEXT
    # add a 'read more' link after the product title text
    title {
        setContentToCurrent = 1
         # title
        prepend = TEXT
        prepend.current = 1
        # the more link
        cObject = TEXT
        cObject.value = mehr info
        wrap = <div class="some class"> |</div>
        typolink.setCommerceValues = 1
        typolink.useCacheHash = 1
    }
}

The text 'mehr info' was generated and displayed resp. appended to the 
product title. Great so far.
BUT no link tag is wrapped around the text... :-(
Seems to refer to the same problem I have to 'generate' a link tag for 
the product title itself.

Did I possibly forget something? You mentioned in the 'teaser example' 
some lines to change:

teaser.postCObject.20 {
	typolink.parameter = {register:commerce_linkToProduct}
	typolink.parameter.insertData = 1
}

Cheers,
Heiko



------------ Original-Nachricht ------------
Franz Koch schrieb am 26.10.2007 09:55 Uhr:
> Hi Heiko,
>
>   
>> thanks for your help. I copied your code in my TypoScript setup.
>> But also this code doesn't change the link - resp. adds no parameter.
>> Would be kind of nice to have the product details popping up in a lightbox.
>> But doesn't seem to be that easy...
>> Did one of the proposals work for anybody else?
>>     
>
> yes - all of them. But they don't work with the wrapping marker you 
> described in one of your first posts. Remove this marker and try the 
> proposals. If then the product title is linking to the single view 
> correctly, the parameter 'rel="moodalbox"' must have also been applied.
>
> If the lightbox then still doesn't work, then it's not our proposals. 
> You asked for a possibility to add the rel parameter to the links.
> --
> Greetings,
> Franz
> _______________________________________________
> TYPO3-project-commerce mailing list
> TYPO3-project-commerce at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-project-commerce
>
>
>   


More information about the TYPO3-project-commerce mailing list