Loading...
 
Skip to main content

Features / Usability


Re: Hiding wiki pages

posts: 32 United States

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...

  1. Create a new security right 'tiki_p_view_unreleased' and gave it only to people inside the company
  2. Create a new security right 'tiki_p_release_pages'
  3. Add an integer column to tiki_pages called 'released'
  4. Add a button to the tiki-page_bar.tpl (I think) that appears for people with the 'tiki_p_release_pages' right
  5. Handle the submit request with 'release=1' in the _REQUEST variables
  6. Modify an 'update_page' type function to set the value of the column
  7. 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
  8. 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...

There are no comments at this time.