[pmwiki-users] setting page attibute acording a publish/drafts ptv

Hans design5 at softflow.co.uk
Thu Nov 27 05:21:06 CST 2008


Thursday, November 27, 2008, 10:22:00 AM, noskule wrote:

> In my blog blog pages I have a Livecycle ptv with values "Draft" or "Publish".
> So I only want to show published post to the public. I use fox to create the
> posts.


> Does anyone have an idea how I could st the read-attribute of the page to
> author or public group acording to the selected Livecycle value.

> I'm not shure how to achive this. Could fox change the attribute, or do I
> script something in config.php.

Fox has no built-in capacity to set page attributes.
I suppose one could write a filter function for this.

But could you not just show your page content according to
the 'Livecycle' PTV setting by using conditional markup?

(:Livecycle: Publish:)
(:if equal {$:Livecycle} Publish:)
my published page content
goes here....
(:if equal  {$:Livecycle} Draft:)
%red%Not published yet!
(:endif:)


  ~Hans




More information about the pmwiki-users mailing list