Re: New editpage feature: [ ] Public

Reini Urban <[email protected]>
Newsgroups gmane.comp.web.wiki.phpwiki.talk
Message-ID <[email protected]>
Sabri LABBENE schrieb:
> Reini Urban wrote:
>> I'd need a new feature to seperate wiki pages between public 
>> and non-public, so that an external tool can make daily public 
>> copies of certain pages, either static or to some external 
>> wiki from within an intranet wiki.
>> And purge non-public pages and versions which were formerly public.
>>
>> Some kind of simple review process, not as complicated as 
>> ModeratedPage, similar to locked.
>> Just a new WikiDB_Page key "public", similar to "locked", with 
>> a checkbox below Locked in action=edit.
>>
>> Should I do that in the public version or just privately?
>> I think of adding a config.ini key like ENABLE_PAGEPUBLIC, 
>> default disabled. A better name would be appreciated.
>>
>> Or do we need more such page attributes, so that a generic 
>> plugin interface to editpage buttons and logic is needed?
> 
> I think it should be a page attribute just like 'locked'.
> 
>> I tough of support for more markup types, which need a 
>> pulldown instead of a checkbox (creole, mediawiki), but this 
>> is too complicated, technically and for the user, so I 
>> rejected that idea. WikiCreole should be supported as addon 
>> automatically and for Mediawiki or other syntax we'd need some 
>> external importer + exporter.
> 
> +1 for importer/exporter/converter solution. Supporting more markups would
> make the parser much more complicated and not easily maintenable! 
> 
>> Ratings are supported by the RateIt plugin which can be added 
>> to the editpage template if wanted.
>> More page attributes such as public in principal also, but 
>> because it is so simple I thought of adding it directly to 
>> lib/editpage.php optionally.
> 
> Yes, good idea.

I coded it now this way, and will test it a bit in the next week.
Just editpage.php and the editpage.tmpl template are affected besides 
config.ini.

I still have to add some code to PageList to support info=public in 
pagelists like AllPages, and maybe we still need a simple ListPublic 
plugin to be able to massedit it.
-- 
Reini Urban
http://phpwiki.org/  http://murbreak.at/

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.