Thursday 29 September 2005 7:59:50 am
Hi! <b>I have this structure:</b>
-forum (node 63)
--|
--|forum_topic1
-----|
-----|forum_reply1
-----|forum_reply2
--|
--|forum_topic2
-----|forum_reply1
I would like to make just a list with all forum_topic and forum_reply by the last published order. <b>I have tried this:</b>
{let folder_list=fetch(content,list,hash(parent_node_id,63,
class_filter_type,include,
class_filter_array,array('folder')))}
{section var=folder loop=$folder_list}
{let last=fetch('content','tree',hash(parent_node_id,
$folder.node_id,
sort_by, array(array('published', false() ) ),
limit, 5 ) )}
{section var=reply loop=$last show=$last}
<a href={concat( $reply.parent.url_alias, '#msg',
$reply.node_id )|ezurl}>{$reply.name|wash}</a>
{/section}
{/let}
{/section}
{/let}
This works fine and show me the last five itens published. But I have a wrong link for all forum_topic nodes. for example:
<b>If the item is a forum_reply I have this link:</b> http://.../folder/forum_topic#msg99 <b>(its ok)</b>
<b>If the item is a forum_topic I have this link:</b> http://.../folder#msg99 <b>(its wrong)</b> This link <b>http://.../folder#msg99</b> should be like this <b>http://.../folder/forum_topic</b> I suppose I have to change something in my code, but I don't know what and I need help. Thanks in advance! Leandro
|