<br><br><div class="gmail_quote">On Jan 2, 2008 1:25 PM, noskule <<a href="mailto:noskule@gmx.net">noskule@gmx.net</a>> 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><<|[[Site.BlogTrail]]|>><br><br><br>Site.BlogTrail:<br>(:pagelist group={*$Group} order=ctime:)<br><br><br>This don't work. Is there a way to do this?<br>thank'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. 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>->'''''<< Read other entries... >>'''''<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>->[-previous-]<br><<&nbsp;[[{<$FullName}|{<$Title}]] <br>(:cell valign=middle:)
<br>|&nbsp;[[{=$FullName}|{=$Title}]]&nbsp;| <br>(:cell valign=middle:)<br>[-next-]<br>[[{>$FullName}|{>$Title}]]&nbsp;>><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>. 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> previous next <br><< Less We Forget | Barren Beauty | The Last Shall Be First >><br><br><br>I hope that helps,
<br><br>Tegan<br></div></div>