<br><br><div class="gmail_quote">On Jan 2, 2008 1:25 PM, noskule &lt;<a href="mailto:noskule@gmx.net">noskule@gmx.net</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
hi list<br>Is it somehow possible to build a wikitrail where the trail index page<br>is generated with a pagelist.<br><br>I would like a trail naviagation in the groupheader of every blogpost<br>that allows to navigate to the previous/next blog post.
<br><br>I tried with:<br><br>Blog GroupHeader:<br>&lt;&lt;|[[Site.BlogTrail]]|&gt;&gt;<br><br><br>Site.BlogTrail:<br>(:pagelist group={*$Group} order=ctime:)<br><br><br>This don&#39;t work. Is there a way to do this?<br>thank&#39;s for any hints
<br>nos</blockquote><div><br>To get a dynamic trail, you just use the pagelist markup itself in your GroupHeader, instead of the trail markup.&nbsp; Your pagelist uses a custom fmt parameter, say, fmt=#trailindex, which you define on your page Site/LocalTemplates.
<br><br>So in your header, put something like<br><br>---- <br>-&gt;&#39;&#39;&#39;&#39;&#39;&lt;&lt; Read other entries... &gt;&gt;&#39;&#39;&#39;&#39;&#39;<br>(:pagelist group ={*$Group} order=ctime fmt=#trailindex:)<br>
----<br><br><br>On my page <a href="http://www.nonviolentworm.org/Site/LocalTemplates">http://www.nonviolentworm.org/Site/LocalTemplates</a> (NOTE this site is v2.1.26, and uses the older relative page-name scheme), I have
<br><br>[[#trailindex]]<br>(:if equal {$FullName} {=$FullName}:)<br>(:table cellpadding=0 cellspacing=0 border=0:)<br>(:cell valign=middle:)<br>-&gt;[-previous-]<br>&lt;&lt;&amp;nbsp;[[{&lt;$FullName}|{&lt;$Title}]] <br>(:cell valign=middle:)
<br>|&amp;nbsp;[[{=$FullName}|{=$Title}]]&amp;nbsp;| <br>(:cell valign=middle:)<br>[-next-]<br>[[{&gt;$FullName}|{&gt;$Title}]]&amp;nbsp;&gt;&gt;<br>(:tableend:)<br>(:if:)<br>[[#trailindexend]]<br><br>You can see it in use on any blog entry in the group 
<a href="http://www.nonviolentworm.org/DiaryOfAWorm">http://www.nonviolentworm.org/DiaryOfAWorm</a>.&nbsp; For example, above the content of <a href="http://www.nonviolentworm.org/DiaryOfAWorm/20071230-BarrenBeauty">http://www.nonviolentworm.org/DiaryOfAWorm/20071230-BarrenBeauty
</a>, the GroupHeader displays:<br><br>« Read other entries… »<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; previous&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; next&nbsp;  <br>&lt;&lt; Less We Forget | Barren Beauty | The Last Shall Be First &gt;&gt;<br><br><br>I hope that helps,
<br><br>Tegan<br></div></div>