Petko Yotov writes:
This variable is not enabled by default, you need to add to config.php:
$FmtPV['$Keywords'] => '@$page["keywords"]';
Sorry, I just noticed I made a typo here, this should be:
$FmtPV['$Keywords'] = '@$page["keywords"]';
Petko
_
Carlos AB writes:
Is there a way to check if the keywords directive was used on a page?
I tried this so far:
(:if equal {=$Keywords} "":) inside a template
(:if equal {=$:Keywords} "":) inside a template
This variable is not enabled by default, you need to add to config.php:
$FmtPV['$Keywo
Interesting results here
http://www.pmwiki.org/wiki/Test/Keywords
cheers
S
On 31 August 2012 12:23, Carlos AB wrote:
> Is there a way to check if the keywords directive was used on a page?
>
> I tried this so far:
>
> (:if equal {=$Keywords} "":) inside a template
> (:if equal {=$:Keywords}
Is there a way to check if the keywords directive was used on a page?
I tried this so far:
(:if equal {=$Keywords} "":) inside a template
(:if equal {=$:Keywords} "":) inside a template
{Html/TagDiv$Keywords} on a page
For description it works fine using a pagevar on a template {=$Description}