Loading...
 

 Note

This page is to document "what Tiki should do". For feature documentation (what Tiki does), please see corresponding page on doc site
Wiki edit proposal, to be reviewed and approved Type of page »  Feature page

Staging and Approval

Trunk Flagged Revisions

How to batch approve pages?

I am migrating an old site from the old Staging and Approval system. I have 1300 pages in 3 categories that should start as approved. Could we have a mass approve, ex with PluginListExecute or something? Thanks! Done in Tiki11

Tiki9 Flagged Revisions

Flagged revisions could use a little TLC. See http://doc.tiki.org/Flagged+Revisions#FAQ Here are some notes that are hoped to make that TLC easier for a newb.

  1. How are they implemented in the database?
    See the Database references table below. When you approve a Flagged Revision, a record is appended in tiki_objects_attributes, with itemId=tiki_history.historyId, type="wiki history", attribute="tiki.history.moderation", and value="OK". Then follow table.fields tiki_objects_attributes. itemId => tiki_history.historyId => tiki_history.pageName and tiki_history.version, which are two fields which match those in tabe tiki_pages.
  2. There is no way to list all current pending Flagged Revisions.
    1. A simple way to implement that might be to modify tiki-listpages.php by adding another Filter, very similar and following the tiki-listpages.php and tikilib.php code paths of "exact_match", selectable by a checkbox, labeled something like "Flagged Revisions pending approval". See tikilib.php function list_pages(). Need to define $mid = "where" clause, and "elseif ($type == 'flaggedrev_pending')".



Database references

Table Relevant Fields
tiki_pages page_id(=14)
pageName(=Procedures)
version(=2)
data(=latest content, may or may not yet be approved)
tiki_pages_changes Empty
tiki_historyhistoryId(=77)
pageName(=Procedures)
version(=2)
data(=blob)
tiki_objects_attributesattributeId(=autoincrement)
type(="wiki history")
itemId(=tiki_history.historyId)
attribute(="tiki.history.moderation")
value(="OK")

When you save an edit to a wiki page, a new record is appended to tiki_history database table, with an incremented version number. The new current wiki content is stuffed in the data blob field (easily readable in a text editor). tiki-pagehistory.php?page=PageName will list each saved edit separately, but those that have been approved contain the text "(approved)" in the "Information" column; so where is that "(approved)" stored or calculated?

So, after all this review, I think we can implement a listing of wiki pages pending flagged-revision approval by adding, on tiki-listpages.php, to the Type: dropdown, which currently has only an option for "Pages not in structure", a new option called "Pages Pending Approval".

Reference Notes, Ignore

TPL files

  1. tiki-flaggedrev_approval_header.tpl
    {if $prefs.flaggedrev_approval eq 'y' and $revision_approval}
    {if ($revision_approved or $revision_displayed) and $revision_approved neq $lastVersion}
    {if $lastVersion eq $revision_displayed}

PHP Files

  1. lib/wiki/flaggedrevisionlib.php
    1. function page_requires_approval($pageName)
      1. $attributelib->set_attribute('wiki history', $version_info'historyId', $attribute, $value);
      2. $attribute="tiki.history.moderation", $value="OK" ($flag="moderation")
  2. lib/wiki/histlib.php
  3. tiki-pagehistory.php
    1. $auto_query_args = array('page', 'oldver', 'newver', 'compare', 'diff_style', 'show_translation_history', 'show_all_versions', 'history_offset', 'paginate', 'history_pagesize');
    2. $info = $tikilib->get_page_info($page);
    3. if (isset($_REQUEST'preview', $_REQUEST'flaggedrev', $_REQUEST'page') && $prefs'flaggedrev_approval' == 'y' && $tiki_p_wiki_approve == 'y') {$targetFlag = null;
      1. if $_REQUEST'approve''approve'" class="wiki wikinew isset">? {

    $targetFlag = 'OK';
    $targetVersion = (int) $_REQUEST'approve';
    $targetFlag is what is pushed into the "value" field in database table tiki_object_attributes.
      1. $flaggedrevisionlib->flag_revision($info'pageName', $targetVersion, 'moderation', $targetFlag);
  4. lib/attributes/attributelib.php

Notes

  1. page_ref_id is a wiki Structure page reference. Interestingly, tiki-editpage.php?page=PageName&page_ref_id=5 has both a "page=" and a "page_ref_id=".
  2. Is it possible to create a search like in tiki-search_replace.php, $results = $wikilib->get_pages_contains() that instead lists pages with pending approvals?
  3. By selecting the appropriate checkboxes here , tiki-listpages.php can list "Last ver." and "Vers.", which are usually the same, but sometimes different, but, at the moment don't make sense to my test page pending Flagged Revisions, dangit. Also, at the bottom, it has a "Perform action with checked:" dropdown that could include an option to approve the pending Flagged Revisions, someday.

Tiki7 revamp

LPH is revamping this feature in Tiki7

  • Needs to handle i18n
    • workflow
      • 0- Live
      • 1- Draft (one language is edited)
      • 2- Ready for content approval
      • 3- Content it approved, ready for translation
      • 4- Translation is done, both languages ready to go live
      • 0- Live




Notes for Tiki6

  • "There is a staging page (not yet approved) for this page." -> A link should be added for people with perms
  • * in page name conflicts with bad characters
  • Approval button should be in history as well http://demo.tiki.org/staging/tiki-approve_staging_page.php?page=*NewPage1
  • Make nicer UI when page is approved (no links to deleted page) and empty "Action" column
  • http://demo.tiki.org/staging/tiki-pagehistory.php?page=ThisPageDoesNOtExistYet


Bugs/Tracker

Open

 RatingSubjectCategoryPriorityImportanceEasy to solve?Submitted byVolunteered to solveLastModifComs
open -2 -1 1 2 (0) Help Prompt for category when using Staging & Approval featureFeature request
5
 
 
2009-02-011
elukac-01 Jul 08
open -2 -1 1 2 (0) Help Page description of wiki page disappears either after approval or when editing an approved pageBug: Usability
Bug: Consistency
5
 
Rontu
 
2009-02-010
open -2 -1 1 2 (0) Help IP of approver shown instead of creators name on wiki pagesBug: Usability
Bug: Consistency
7
 
Rontu
 
2009-02-011
fjcolo-14 Feb 09
open -2 -1 1 2 (0) Help Structures do not work with StagingBug: Usability
Support request
Documentation (or Advocacy)
Bug: Consistency
Bug: conflict of two features (each works well independently)
5
 
thebookdoc
 
2010-12-240
open -2 -1 1 2 (0) Help Staging and Approval problemBug: Error
Bug: Usability
6
 
ChadDa3mon
 
2010-12-210
open -2 -1 1 2 (0) Help Plugin validation cannot be turned off, TW5.1Bug: Usability
7
 
Gergely
 
2010-09-280
open -2 -1 1 2 (0) Help Multiple issues with Staging and Approval in Tiki 6Bug: Regression
9 high
 
Rick
 
2010-12-210
open -2 -1 1 2 (0) Help Default Object CategoryBug: Error
Bug: Usability
7
 
epaik
 
2011-03-162
BBASH-29 Sep 11
open -2 -1 1 2 (0) Help Email notification (object entered/left category) is not working when i use the transition with the transition moduleFeature request
Bug: Consistency
7
 
gcosilveira
 
2011-05-040

Pending

Closed

 RatingSubjectCategoryPriorityImportanceEasy to solve?Submitted byVolunteered to solveLastModifComs
closed -2 -1 1 2 (0) Help True StagingFeature request
6
 
jhwheuer
koth
2010-01-160
closed -2 -1 1 2 (0) Help Wiki: all edits must be approved by users of a certain group, before being made public.Feature request
5
 
Marc Laporte
koth
2009-02-010
closed -2 -1 1 2 (0) Help MySQL-Errors approve+stagingBug: Error
7
 
walklife
walklife
2010-05-102
Chealer9-08 Mar 10
closed -2 -1 1 2 (0) Help Staging and approval problem on Tiki 3.0Bug: Error
Bug: Usability
9 high
 
gezza
 
2010-12-200
closed -2 -1 1 2 (0) Help staging & approvalBug: Usability
9 high
 
anchaudhary
 
2010-12-200
closed -2 -1 1 2 (0) Help Categories not assignedBug: Usability
7
 
ericbee
 
2013-05-091
BBASH-29 Sep 11
closed -2 -1 1 2 (0) Help Approval of staging pages: no matter wheter you choose approve or reject changes, after submit, changes are always approved.Bug: Error
7
 
jordiflor
 
2010-12-220
closed -2 -1 1 2 (0) Help Patch to staging & approvalPatch
5
 
 
2011-09-040




Related

Alias

Search Wishes (subject only) [Toggle]

Keywords [Toggle]

The following is a list of keywords that should serve as hubs for navigation within the Tiki development and should correspond to documentation keywords.

Each feature in Tiki has a wiki page which regroups all the bugs, requests for enhancements, etc. It is somewhat a form of wiki-based project management. You can also express your interest in a feature by adding it to your profile. You can also try out the Dynamic filter.

Accessibility (WAI & 508)
Accounting 7.x
Administration
Ajax 2.x
Articles & Submissions
Backlinks
Banner
Batch 6.x
BigBlueButton audio/video/chat/screensharing (5.x)
Blog
Bookmark
Browser Compatibility
Calendar
Category
Chat
Comment
Communication Center
Consistency
Contacts Address book
Contact us
Content template
Contribution 2.x
Cookie
Copyright
Credits 6.x
Custom Home (and Group Home Page)
Database MySQL - MyISAM
Database MySQL - InnoDB
Date and Time
Debugger Console
Directory (of hyperlinks)
Documentation link from Tiki to doc.tiki.org (Help System)
Docs 8.x
DogFood
Draw 7.x
Dynamic Content
Preferences
Dynamic Variable
External Authentication
FAQ
Featured links
Feeds (RSS)
File Gallery
Forum
Friendship Network (Community)
Group
Help
Hotword
HTML Page
i18n (Multilingual, l10n, Babelfish)
Image Gallery
Import-Export
Install
Integrator
Interoperability
Inter-User Messages
InterTiki
jQuery
Kaltura video management
Karma
Live Support
Logs (system & action)
Lost edit protection
Mail-in
Map
Menu
Meta Tag
Missing features
Visual Mapping 3.x
Mobile Tiki and Voice Tiki
Mods
Module
MultiTiki
MyTiki
Newsletter
Notepad
OS independence (Non-Linux, Windows/IIS, Mac, BSD)
Organic Groups (Self-managed Teams)
Payment 5.x
Performance Speed / Load / Compression / Cache
Permission
Poll
Profiles
Quiz
Rating
Report
Score
Search engine optimization (SEO)
Search
Security
Semantic links 3.x
Shopping Cart 5.x
Shoutbox
Site Identity
Slideshow
Smarty Template
Social Networking
Spam protection (Anti-bot CATPCHA)
Spellcheck
Spreadsheet
Staging and Approval
Stats
Survey
Syntax Highlighter (Codemirror)
Tags 2.x
Task
Tell a Friend, alert + Social Bookmarking
TikiTests 2.x
Theme
Toolbar (Quicktags)
Trackers
TRIM
User Administration
User Files
User Menu
Watch
WebHelp
Webmail and Groupmail
WebServices 3.x
Wiki 3D
Wiki History, page rename, etc
Wiki plugins extends basic syntax
Wiki syntax text area, parser, etc
Wiki structure (book and table of content)
Workspace and perspectives 4.x
WYSIWTSN 4.x
WYSIWYCA
WYSIWYG 2.x
XMLRPC




Useful Tools [Toggle]