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

Reply via email to