[pmwiki-users] Added meta tags and schema.org microdata injection into pages

Brian Tibbels brian.tibbels at clickmarlow.co.uk
Wed Oct 5 09:44:00 CDT 2011


I was surprised this disn't work. Does anyone know why this doesn't work as
it is the only way I can see of getting a pagetext variable back into the
template.

Rgds
Brian



I found something the like also here
http://www.pmwiki.org/wiki/PmWiki/PageTextVariables#withincode
but I'm failing to get it working.
Adding this
   $Image=PageVar($pagename,'$:
>
> Image');
> to config.php and then placing (as an example)
>    <meta itemprop="image" content="{$Image}" />
> and defining the variable into the wiki page this way
>    (:Image:http://www.example.com/picture.jpg:)
> into the skin template does not seem to make the trick.
>
>



On 5 October 2011 06:53, kirpi at kirpi.it <kirpi at kirpi.it> wrote:

> > Brian:
> > Put this in the config.php
> > $Image=PageVar($pagename,'$:Image');
> > then use the var as normal in the template {$Image}
>
> Thank you, Brian!
> I found something the like also here
> http://www.pmwiki.org/wiki/PmWiki/PageTextVariables#withincode
> but I'm failing to get it working.
> Adding this
>    $Image=PageVar($pagename,'$:Image');
> to config.php and then placing (as an example)
>    <meta itemprop="image" content="{$Image}" />
> and defining the variable into the wiki page this way
>    (:Image:http://www.example.com/picture.jpg:)
> into the skin template does not seem to make the trick.
>
>
> > Carlos:
> > Oh, It makes me sad that you gave up
> > on trying to give a programatic
> > answer to your own needs.
> > ...
> > But not all is lost, I've made the recipe.
>
> Really thank you Carlos, as well as V.Krishn and Petko for your
> contributions.
> The recipe Carlos made produces an interesting result.
> Really!
>
> I will now try to extend it and post it back here as well as set up a
> recipe page for this.
>
> Thank you again Carlos!
>
> Luigi
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20111005/ae16df8a/attachment.html>


More information about the pmwiki-users mailing list