[pmwiki-users] Is it possible? Draft Page indication and cross reference
Crisp, Steve [UK]
SCRISP at ngms.eu.com
Thu Jul 5 06:49:09 CDT 2007
Hagan,
You are a star! I've implement that IAW your recipe and it works well.
Instead of adding to the sidebar I thought it best to add to the
'Site.PageActions' file. On mine I colour code 'View Draft' to red and
'View Published' in green.
Thanks for your support on this one - great enhancement.
-Steve.
> -----Original Message-----
> From: haganfox at gmail.com [mailto:haganfox at gmail.com] On Behalf Of H.
Fox
> Sent: 04 July 2007 21:02
> To: Crisp, Steve [UK]
> Cc: pmwiki-users at pmichaud.com
> Subject: Re: [pmwiki-users] Is it possible? Draft Page indication and
> cross reference
>
> On 7/4/07, H. Fox <haganfox at users.sourceforge.net> wrote:
> > Or you can put this in config.php
> >
> > $pagename = ResolvePageName($pagename);
> > if (CondAuth($pagename, 'edit')
> > && PageExists($pagename.'-Draft')) { $EditDraft = TRUE; }
> >
> > and use this in your SideBar
> >
> > (:if enabled EditDraft:)
> > [-([[{*$FullName}-Draft | View draft ]])-]
> > (:if:)
>
> Better still, switch in both directions.
>
> http://www.pmwiki.org/wiki/Cookbook/SwitchToAndFromDraft
>
> Hagan
More information about the pmwiki-users
mailing list