Wednesday 30 March 2005 11:34:19 am
Ok, I am getting the hang of this thing. But again the stuff that seems to be trivial is difficult to do.
I have a custom pagelayout with frames. Each frame is loaded using two seperate layput templates The bottom frame grabs some article and list them.
{let children=fetch( content,
list,
hash( parent_node_id, 58)
)
}
{section name=Child loop=$children}
{$:item.object.published|l10n(shortdate)}<br/>
{attribute_view_gui attribute=$:item.object.data_map.title}<br/>
<a href={$:item.url_alias|ezurl}>{$:item.name}</a><br/>
<a href={'layout/set/displayarticle/news/article1'}>{$:item.name}</a>
{/section}
{/let}
I have two links for testing. The first link load the article in the current window using the current custom layout template which is what I expectd. What I want to do is have the second link use a different article template which was already defined in layout.ini. However the link that gets built has the current path to the current layout with the information seen in the link appended to it.
ex:
http://brutus:9000/index.php/plain/layout/set/bottomframe/news/layout/set/displayarticle/news/article1
I want it to be: http://brutus:9000/index.php/plain/layout/set/displayarticle/news/article1 So how do I build a link to the article that is displayed using a different layout then the layout in the originating url. Hope that makes sense
|