[pmwiki-users] Is it possible? Draft Page indication and cross reference

H. Fox haganfox at users.sourceforge.net
Wed Jul 4 15:02:26 CDT 2007


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