John Smith
|
Thursday 06 November 2008 1:55:46 am
Hi, Yesterday I wrote the following code with is overriding the full folder template.
{let
parent=fetch('content','node',hash('node_id',$node.path_array.3))
grandparent=fetch('content','node',hash('node_id',$node.path_array.4)) }
{let children=fetch( content, list, hash( parent_node_id, $node.path_array.4, class_filter_type, include, class_filter_array, array( 'folder', 'article' ), sort_by, $grandparent.sort_array ) )}
-----
-----
-------
But the problem is when I am changing the prioities of the items in the folder, I am not getting the same result untill I clear the cache. This is quite annoying. I fixed it by writting the follwoing line before the code.
{set-block scope=root variable=cache_ttl}0{/set-block}
Is this is right solution?
|