[pmwiki-users] wiki forms recipe interpretation of title directive

john.rankin at affinity.co.nz john.rankin at affinity.co.nz
Fri Jun 20 15:39:23 CDT 2008

> On Friday, 20 June 2008 4:55 AM, pmwiki-users-request at pmichaud.com wrote:
>>But when using the {$Title} page variable in the ViewTemplate or the
>>GroupHeader it only shows the page name and not the title. I would
>>highly appreciate your help.
> You could also try the following code change:
> In function FormValues, look for the line that reads
>     $GLOBALS['PCache'][$pagename]['time'] = $page['time'];
> Comment this out and replace it with
>     PCache($pagename, $page);
> Date: Fri, 20 Jun 2008 08:36:09 +0300
> From: "Peter Bowers" <pbowers at pobox.com>
> Subject: Re: [pmwiki-users] wiki forms recipe interpretation of title
> 	directive
> To: "Michael Schaefer" <schaefermic at web.de>
> I am able to successfully use {$Title} in my ViewTemplate. Not sure what
> that means...
> -Peter

That's really strange, because I was able to replicate the problem and
adding a call to PCache, as described above, fixed it! Michael reported
to me offline that it fixed the problem for him too.

I have uploaded a new version to Cookbook.WikiForms, which fixes this
and several other minor issues with the ViewTemplate.

(Peter, this doesn't yet fix your problem with form values being passed
correctly. I think the best solution is to define an array of variable names
to be preserved -- we should sort this out.)


More information about the pmwiki-users mailing list