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, [email protected] <[email protected]> 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 >
_______________________________________________ pmwiki-users mailing list [email protected] http://www.pmichaud.com/mailman/listinfo/pmwiki-users
