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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of H. Fox > Sent: 04 July 2007 21:02 > To: Crisp, Steve [UK] > Cc: [email protected] > Subject: Re: [pmwiki-users] Is it possible? Draft Page indication and > cross reference > > On 7/4/07, H. Fox <[EMAIL PROTECTED]> 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 _______________________________________________ pmwiki-users mailing list [email protected] http://www.pmichaud.com/mailman/listinfo/pmwiki-users
