Re: Hiding wiki pages
I implemented this exact system on my site. We have customer-accessible documentation stored as Wiki pages of which they get to see the last 'released' version.
Implementing it went sort of like this...
- Create a new security right 'tiki_p_view_unreleased' and gave it only to people inside the company
- Create a new security right 'tiki_p_release_pages'
- Add an integer column to tiki_pages called 'released'
- Add a button to the tiki-page_bar.tpl (I think) that appears for people with the 'tiki_p_release_pages' right
- Handle the submit request with 'release=1' in the _REQUEST variables
- Modify an 'update_page' type function to set the value of the column
- Modify tiki-index.php to check the 'tiki_p_view_unreleased' right versus the page's released status - if latest version is not released, get the last released version in the page's history; if no released versions, show appropriate error message
- output 'released' status to smarty to template can show status
I think I also adjusted the 'show_history' page to add a column for release status. Let me know if you need any more input...