Cookbook / PageListExtensions-Talk | Discuss Page Recent Changes Printable View Page History Edit Page |
Summary: Talk page for PageListExtensions.
Maintainer: MartinFick
This space is for User-contributed commentary and notes. Please include your name and a date along with your comment. CommentsThe beauty of this is that one can use this to make a pagelist which will then list ALL the trails that the current page is on (as distinct from DynamicWikiTrails which only lists the wiki-trail currently being traversed). First, one makes a pagelist format to reference (recursively) one of the above trail formats, and setting the above 'trail' variable to the currently matching page. [[#trailtrail]] (:pagelist trail={=$FullName} fmt={$$trailfmtpage}#{$$trailfmt}:) [[#trailtrailend]] When using the #trailtrail format, you give it the 'trailfmt' argument (which selects which 'trail' format to use). (If you don't then you end up with an endless recursion, so beware!) Then you make a pagelist which lists the pages which link to the current page. (:pagelist link={$FullName} trailfmt=trail fmt=#trailtrail:) You would add stuff to this pagelist definition to make sure that the list is limited to pages which are likely to have wikitrails on them, from what you know about the contents of your own wiki. For example, suppose you have three wikitrail pages you're interested in, GroupA/GroupA, GroupA/FooPage and GroupB/BarPage. You don't know if the current page is on any of them, but if it is you want the trail markup to be there. In that case, you would put (:pagelist group=GroupA,GroupB name=GroupA,FooPage,BarPage link={$FullName} trailfmt=trail fmt=#trailtrail:) (probably put it in the GroupHeader or GroupFooter to make it easier)
What comes out is all the trails which the current page is on, automatically, without having to add them by hand. Isn't that nifty? -- Kathryn Andersen July 28, 2006, at 06:12 PM
Er, what exactly does the 'targets' option do? Kathryn Andersen July 28, 2006, at 06:26 PM
Sounds great, but should this still work in 2.2.0-beta65? I don't want to spend hours trying to figure out where in config.php or farmconfig.php I should place it to make it work if it doesn't work at all... Anke January 10, 2008, at 02:16 AM Talk page for the PageListExtensions recipe (users?). |
Summary: Create "Side Notes" for jotting down notes
Version:
Prerequisites: just testing
Status:
Maintainer:
Categories: Editing, Administration
(edit) Side NotesThis is Side Notes for jotting down some note. Simply create a wiki page {Group}.SideNotes where "Group" is the name of the wiki group. |