|
Cookbook /
TrailPageDescriptionSummary: Create and maintain additional infos for Trailpages within the Trailindexpage
Version: 1
Prerequisites: I used AllGroupHeader recipe, but it works with GroupFooters too
Status: experimental
Categories: WikiTrails
Questions answered by this recipe
DescriptionUse GroupFooters, PTV and pagelist for easy commenting trailpages The idea is to let a pagelist in the GroupFooter check the pagesname if it is stored in any Trailindex within a TrailsGroup. If so to output the trail-arrows and to readout a PTV from the found Trailindex, which keeps the additional comment to the page, belonging to the intention of this trail. Setup a TrailIndexTrailIndexPages are stored in group called TrailsGroup. To every listitem of the trail add a PTV in the form "GroupPage" without any dot. (I'll discuss this later on.) This will be the comments below the trail-arrows. Trails.TestTrail (:title A Testtrail:) * [[GroupA.Page1]] :GroupAPage1: comment on Page1 //a PTV named like the $FullName without dot * [[GroupB.Page1]] :GroupBPage1: comment on Page1 (B) * [[GroupC.Page2]] :GroupCPage2: comment on Page2 AimIn the footersection lets say of GroupB.Page1 should appear sth. like this automatically GroupA.Page1<<A Testtrail>>GroupC.Page2 comment on Page1 (B) Setup the GroupFooter or the AllGroupFooterI set up the Site.AllGroupFooter, like it is described in the AllGroupHeader-recipe. But it works within a GroupFooter too. Put this in the GroupFooter
So you resolve all the Pages within the TrailsGroup, except the RecentChanges, which is a IndexPage too, but not needed. Setup the PagelistformatThe I used something like this
[[#commentedtrail]]
(:if ontrail {=$FullName} {*$FullName}:)
>>frame center font-size=smaller<<
<<|[[{=$FullName}| +]]|>>
{{=$FullName}$:{*$Group}{*$Name}}
>><<
(:ifend:)
[[#commentedtrailend]]
Keep in mind Well, thats it. If the page, that I'm on is ontrail of a TrailsGroup-Page (resolved by pagelist), the trailmarkup is set and the comment-PTV is read out and displayed. NotesWell, I'm a little unhappy. At one hand trails definitely work with a definition-list, so you can setup a trail in the form :[[GroupA.Page1]]: some info to page 1 in A :[[GroupB.Page1]]: some info to page 1 in B :[[GroupC.Page2]]: some info to page 2 in C That would be the hit, BUT i've found no way, to resolve a PTV called At last, I dont know anything about performance within a huge wiki. Release notesxian? January 02, 2010, at 04:52 PM a first description
See alsoContributorsCommentsHow to shrink the pagelistouput. settin up the pagelist to looking up IndexPages that link to the calling page like
User notes? : If you use, used or reviewed this recipe, you can add your name. These statistics appear in the Cookbook listings and will help newcomers browsing through the wiki. |