[pmwiki-users] How to programmatically get a list of pages that link to Category.Category
Petko Yotov
5ko at 5ko.fr
Thu Aug 29 14:57:14 CDT 2013
Tamara Temple writes:
> I'm working on some markup, and I need the list of pages that link to
> Category.Category. Is there a function to get that info, like I'd get it
> from (:pagelist link=Category.Category:) inside a wiki page?
Sorry for the late reply. Inside a function called by a Markup() rule you
can have:
$mylist = MakePageList($pagename, array('link'=>'Category.Category'));
This returns more than the names, it is an array containing each page as an
array with the page metadata - name, title, change summary, timestamp etc.
Petko
More information about the pmwiki-users
mailing list