kevin wei
|
Sunday 09 January 2005 9:14:56 pm
i always use these code from folder.tpl
{section show=is_unset( $versionview_mode )}
{section show=$node.object.data_map.show_children.content}
{let page_limit=10
list_items=array()
list_count=0}
{section show=or( $view_parameters.day, $view_parameters.month, $view_parameters.year )}
{let time_filter=array( and,
array( 'published', '>=',
maketime( 0, 0, 0,
$view_parameters.month, cond( $view_parameters.day, $view_parameters.day, 1 ), $view_parameters.year ) ),
array( 'published', '<=', maketime( 23, 59, 59,
cond( $view_parameters.day, $view_parameters.month, $view_parameters.month|inc ), cond( $view_parameters.day, $view_parameters.day, 0 ), $view_parameters.year ) ) )}
{set list_items=fetch_alias( children, hash( parent_node_id, 63,
offset, $view_parameters.offset,class_filter_type, include, class_filter_array, array('folder'), attribute_filter, $time_filter,
sort_by, $node.sort_array,
limit, $page_limit ) )
list_count=fetch_alias( children_count, hash( parent_node_id, $node.node_id) )}
{/let}
{section-else}
{set list_items=fetch_alias( children, hash( parent_node_id, 63,
offset, $view_parameters.offset,class_filter_type, include, class_filter_array, array('folder'),
sort_by, $node.sort_array,
limit, $page_limit ) )}
{set list_count=fetch_alias( children_count, hash( parent_node_id,$node.node_id ) )}
{/section}
<div>
{section var=child loop=$list_items }
<a href={concat('content/view/full/',$child.node_id)|ezurl}>{$child.name|wash()}</a>
{/section}
</div> {/section}
{/section}
maybe can help u!
|