[pmwiki-users] Custom Page lists

Patrick R. Michaud pmichaud at pobox.com
Sun Jul 22 13:58:54 CDT 2007


On Sat, Jul 21, 2007 at 10:56:05AM -1000, Sivakatirswami wrote:
> Possibly this is answered at I would like to be able to customize, 
> easily edit  and have auth control over
>   the side bar links which change frequently based on what
> projects and areas are "hot" and what projects are dead or
> completed and "cold" and no longer need top level links.
> 
> Also I would like this list to only "reveal'  the groups that a
> user is authenticated to see I have this already functional in other 
> page lists.
> 
> So, obviously a page list will work, but I would rather not have to edit 
> the page list
> string:
> 
> (:pagelist group=-Pmwiki,-Site,-Team,-TODO*,-XToDo* list=group $g0=1 :)
> ...

Use a trail.  

For example, if Site.ActiveProjects contains:

  * [[VisitorCare/]]
  * [[HTDE/]]
  * [[HTDE-MediaViewer/]]
  * [[WebContent-FAQ/FunctionalSpecification]]
  * [[PageUpGrades/]]
  * [[Lexicon/]]
  * [[Cybertalk/]]
  * [[MailLists/]]

Then in the sidebar you can do

  (:pagelist trail=Site.ActiveProjects fmt=#titlespaced:)

and you'll get back a simple list of only those pages
that the person is authorized to view.  Also, the title
of each page (as given by its (:title:) directive)
will be used as the link text.  Thus, if 
WebContent-FAQ.FunctionalSpecification has
(:title Web FAQ Dev:), then that's what will be used
as the link text in the resulting output.

Pm



More information about the pmwiki-users mailing list