[pmwiki-users] Conditional markup in head of template problem

John Rankin john.rankin at affinity.co.nz
Fri Jul 20 01:46:56 CDT 2012


>
> I put this in local/config.php:
>
> Markup('noindex','fulltext','/\\(:noindex:\\)/',
> '<meta name="robots" content="NOINDEX">');
>
> <snip>
>
> The problem is that my meta tag ends up being wrapped in <p> </p>. Running
> the <!--markup into lines was an attempt to fix this, but it didn't work
> either.

Try:

 Markup('noindex','fulltext','/\\(:noindex:\\)/',
'<:block><meta name="robots" content="NOINDEX">');

JR
-- 
John Rankin




More information about the pmwiki-users mailing list