[pmwiki-users] is it possible to make (:keywords …:) accessible as a PageVariable?
Petko Yotov
5ko at 5ko.fr
Wed Jun 13 01:46:16 CDT 2012
a.sonderhoff at gassi-tv.de writes:
> Is there an easy way to make sure the (:keywords:) directive creates a
> PageVariable additionally to creating the html meta keyword tag? (Easy way
> as in reconfiguring the directive in config.php)
Yes, add to config.php such a line:
$FmtPV['$Keywords'] = '@$page["keywords"]';
Then in a wiki page use {$Keywords} to display them, and in a pagelist
use (:pagelist $Keywords=*keyword*:) to filter pages, like with other page
variables.
Petko
More information about the pmwiki-users
mailing list