[TYPO3-shop] Offers with different template in list view?

Stefanie Axinger sinasita at gmail.com
Mon Jun 30 22:11:02 CEST 2008


Hello Juan,

don't know if this is exactly what you want, but you can use a template
suffix.
If u put the content items on one page, one with the normal products:list
and
another one with list offers, you can define a template suffix for the
offers-item.

The normal part for the list item is ###ITEM_LIST_TEMPLATE###, but you
can repeat this part in your HTML-Template with for example the name
###ITEM_LIST_TEMPLATE_OFFERS###. Here you can put other classes
and style it different.

In the field template suffix in the content item you have to put in than:
OFFERS (or the name you habe selected after ###ITEM_LIST_TEMPLATE_)
And so, the new defined part is used for displaying the offers...

Greetz

"Juan Pablo Villaverde" <jpablo at omnisciens.com> schrieb im Newsbeitrag 
news:mailman.1.1214602987.4919.typo3-project-tt-products at lists.netfielders.de...
>
> Oh, I understand, but I need to show a complete list of products, not a 
> LISTOFFERS, may be I was not very clear. I am trying to create a LIST 
> showing a standard background for normal products and a yellow background 
> for products with offers.
>
> Many thanks anyway Matt.
>
> Juan Pablo Villaverde
> jpablo at omnisciens.com
> http://www.omnisciens.com
>
> "Matt Sturkenboom" <m.sturkenboom at gmail.com> escribió en el mensaje 
> news:mailman.10605.1214600743.4573.typo3-project-tt-products at lists.netfielders.de...
> This is the code I use in my template setup:
>
> temp.menuRight < plugin.tt_products
> temp.menuRight {
>        templateFile = fileadmin/templates/shop/offers.tmpl
>        listImage < .image
>        listImage.file.maxW = 50
>        listImage.file.maxH = 50
>        recursive = 99
>        NoSingleViewOnList = 1
>        PIDitemDisplay = 164
>        code >
>        code = LISTOFFERS
>    }
> page.10.subparts.OFFERS < temp.menuRight
>
>
> PIDitemDisplay = 164 is the PID where all the offers are listed.
>
>
> Hope this helps! ;)
>
>
> 2008/6/26 Juan Pablo Villaverde <jpablo at omnisciens.com>:
>
>> Thanks Matt! But I am not sure about what do you mean.. You have a 
>> template
>> file with the ###ITEM_LIST_TEMPLATE###, and another template file with 
>> the
>> same markup but a different design, right? How you diferentiate the 
>> normal
>> products from the offer products via typoscript? and what is the subpart
>> template setup code? it's a separate file...
>>
>> "Matt Sturkenboom" <m.sturkenboom at gmail.com> escribió en el mensaje
>>
>> news:mailman.10325.1214494300.4573.typo3-project-tt-products at lists.netfielders.de.
>> ..
>> >I made a suppart for my offers with a different design. Simply add a
>> > reference to an other template file in your suppart template setup 
>> > code.
>> >
>> > 2008/6/26 Juan Pablo Villaverde <jpablo at omnisciens.com>:
>> >
>> >> Hi!
>> >>
>> >> Is there any chance to have a different design in the list view (a
>> yellow
>> >> background for instance) in products marked as "offer"?
>> >> Maybe another subpart.
>> >>
>> >> Regards,
>> >>
>> >> Juan Pablo Villaverde
>> >> jpablo at omnisciens.com
>> >> http://www.omnisciens.com
>> >>
>> >>
>> >> _______________________________________________
>> >> TYPO3-project-tt-products mailing list
>> >> TYPO3-project-tt-products at lists.netfielders.de
>> >>
>> >>
>> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-project-tt-products
>> >>
>>
>>
>>
>> _______________________________________________
>> TYPO3-project-tt-products mailing list
>> TYPO3-project-tt-products at lists.netfielders.de
>>
>> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-project-tt-products
>>
>
> 




More information about the TYPO3-project-tt-products mailing list