[TYPO3-dev] set_no_cache is bad. What's next?
Franz Holzinger
franz at ttproducts.de
Sat Oct 31 09:13:39 CET 2009
Hello Joey,
JoH asenau a écrit :
>>> IMHO this is how most of the extensions should be working and this
>>> is how tt_products, tt_news and the like could be tuned to work much
>>> faster than they currently do.
>> Yes, this seems to be a good solution for the single view. But how
>> should this work for the list view of products, where you also have a
>> category header and sorting of products? All products of a category
>> are listed together in their own block. You have a basket part as
>> USER_INT for each product on the list view.
>
> Yes - and where is the problem?
> Although I have to admit that it might be faster to render the whole list as
> a USER_INT in this case.
> But anyway it will be better than using set_no_cache()
>
> So again - where is the problem?
In the tt_products list view you have these parts:
<!-- ###ITEM_LIST_TEMPLATE### begin -->
<form method="post" action="###FORM_URL###" name="###FORM_NAME###">
<!-- ###FE_GROUP_1_TEMPLATE### begin -->
...
<!-- ###FE_GROUP_1_TEMPLATE### end -->
<!--###LINK_PREV###--> ... <!--###LINK_PREV###-->
<!-- ###LINK_BROWSE### begin -->
[ ###BROWSE_LINKS### ]
<!-- ###LINK_BROWSE### end-->
<!--###LINK_NEXT###--> ... <!--###LINK_NEXT###-->
<!-- ###ITEM_CATEGORY_AND_ITEMS### begin -->
<!-- ###ITEM_CATEGORY### begin -->
...
<!-- ###ITEM_CATEGORY### end -->
<!-- ###ITEM_LIST### begin -->
<!-- ###ITEM_SINGLE### begin-->
...,
<!--###LINK_ITEM###-->
...
<!--###LINK_ITEM###-->
###PRODUCT_TITLE###
###PRODUCT_IMAGE1###
<!-- ###display_variant1### -->
###GW2B### Farbe: ###GW2E### <select id="###PRODUCT_COLOR_ID###"
style="font-size: 10px"
name="###FIELD_COLOR_NAME###" rows="1">###PRODUCT_COLOR###</select><br>
<!-- ###display_variant1### -->
<!-- ###display_variant2### -->
###GW2B### Größe: ###GW2E### <select
id="###PRODUCT_SIZE_ID###" style="font-size: 10px"
name="###FIELD_SIZE_NAME###" rows="1">###PRODUCT_SIZE###</select><br>
<!-- ###display_variant2### -->
<!-- ###PRODUCT_OFFER_EQ_1### begin -->
*** AKTION ***
<!-- ###PRODUCT_OFFER_EQ_1### end -->
###GW1B### Stückzahl: ###GW1E### <input size="8" maxlength="10"
type="text" name="###FIELD_NAME###" value="###FIELD_QTY###">
<!-- ###FE_GROUP_1_TEMPLATE### begin --><input type="image"
name="addtomemo" src="###PATH_FE_REL###res/icons/fe/addmemo.png"
value="auf die Merkliste"
onClick="document.getElementsByName('###FORM_NAME###')[0].action='###FORM_MEMO###&tt_products[addmemo]=###PRODUCT_UID###';"
title="Add to memo"><!-- ###FE_GROUP_1_TEMPLATE### end -->
<input type="Submit" name="order2" value="###BASKET_INTO###">
<!-- ###ITEM_SINGLE### end -->
<!-- ###ITEM_LIST### end -->
<!-- ###ITEM_CATEGORY_AND_ITEMS### end -->
</form>
<!-- ###ITEM_LIST_TEMPLATE### end -->
Which setup must I use to have also the whole list view as a wingle
cObject? There are multiple parts repeated inside of another subpart
marker. Can you still build this with a TEMPLATE setup? How do you build
these repeated parts described by subpart markers and the wrapped
subpart markers for the links?
- Franz
More information about the TYPO3-dev
mailing list