[pmwiki-users] Getting the list of all anchors in a page ?

Petko Yotov 5ko at 5ko.fr
Sun Jul 18 16:14:59 CDT 2010


On Thursday 15 July 2010 18:35:19, ABClf wrote :
> In my case, I have a page with some anchors well named ; and I would
> find convenient to use something as (:listanchor:) to get a basic list
> (I would like an horizontal format : word1 ; word2 ; word3) instead of
> doing the list by hand.
> 
> [[#word1]]
> ...
> [[#word2]]
> ...
> [[#word3]]

You can add a markup definition :
  
   Markup('listanchor', '>[[#', '/\\(:listanchor:\\)/e', 
    'implode(" ; ", array_keys($GLOBALS["SeenAnchor"]))' );

Thanks,
Petko



More information about the pmwiki-users mailing list