| Thursday 21 February 2008 1:57:53 am 
                                                                
                                                                 Hi, I did an override for folder depending on section : 
[folder_annuaire_produits]
Source=node/view/full.tpl
MatchFile=full/annuaire_produits.tpl
Subdir=templates
Match[class_identifier]=folder
Match[section]=7
 In this annuaire_produits.tpl, I fetch a tree of subfolders with products in them to print out a limited number of products sorted by published date (the very last new products) : 
{def $products =   fetch('content','tree',hash( parent_node_id, $node.node_id,
                           'class_filter_type', 'include',
                           'class_filter_array', array('produit'),
                           'sort_by', array( 'published', false() ),
						   'limit', 9 ) )
				 
			}
{foreach $products as $product}
{node_view_gui view='embed' content_node=$product}
{/foreach}
At this point everything is ok...but not when there is a new product published in the subtree.It doesn't appear in the last new product due to the standard cache mechanism.
 I know there is a subtree cache function but I don't know how to write it.
 I need some help. Best reagrds. Laurent |