[pmwiki-users] Previous Page
Daniel
dkml at xs4all.nl
Tue Feb 7 13:29:30 CST 2012
On 07-02-12 17:51, Peter Bowers wrote:
> On Tue, Feb 7, 2012 at 5:21 PM, Daniel <dkml at xs4all.nl> wrote:
>> $pagename = ResolvePageName($pagename);
>> if ($pagename != $prevpage) {
>> $prevpage = ResolvePageName($prevpage);
>> $FmtPV['PrevPage'] = PageVar($prevpage, '$FullName');
>> $prevpage = $pagename;
>> }
>
> You would have to save it in your session or a cookie rather than just
> in a variable if you want the value to remain between successive loads
> of pages.
>
> All normal PHP variables are destroyed (lose their values) at the
> conclusion of the processing of the current page.
I think I found a solution using Cookbook/HttpVariables
Page A: (:cookie prev page_a:)
Page B: You are coming from {$@prev}
Thanks
More information about the pmwiki-users
mailing list