Forums / Setup & design / Conecting fetch to navigator templates

Conecting fetch to navigator templates

Author Message

arthur foelsche

Tuesday 13 May 2003 6:43:03 pm

Hi-
I'm trying to conect a fetch connection to a navigator so i can navigator. I'm having some problems making them work together- ie i can't figure it out for the life of me. So here's a rough idea of the code that i'm using:

{include name=navigator
uri='design:navigator/google.tpl'
page_uri=concat('/content/browse/',158)
item_count=$browse_list_count
view_parameters=$view_parameters
item_limit=10}

{cache-block keys=$newswire}{let newswire=fetch( 'content',
'list',
hash(parent_node_id, 158, class_filter_type, "include", class_filter_array, array(2), "sort_by", array("modified", false()), "depth", 0))
}
<table>
{section name=newswirechild loop=$newswire max=20 offset=$offset}
<tr><td valign="top"><font size=-1>{$newswirechild:item.data_map.article_date.data_int|l10n(date)}</td>
<td><font size=-1><a href={concat("/content/view/full/",$newswirechild:item.node_id)|ezurl}>{attribute_view_gui attribute=$newswirechild:item.data_map.pagetitle}</a>
<i>{attribute_view_gui attribute=$newswirechild:item.data_map.article_location}</i></td></tr>
{/section}
</table>
{/let}
{/cache-block}