|
Cookbook /
JJSApprovePageSummary: Controls a page attribute "jjsApprovePageRev"
Version: 1.2
Prerequisites: probably not of much use without JjsCMS and JJSEditRev
Status:
Maintainer: jjs
Categories:
Questions answered by this recipeHow can I prevent jjscms from publishing some pages? DescriptionAction The value of "jjsApprovePageRev" can be
InstallationDownload jjsapprovepage1_2.phpΔ and save it in your cookbook directory add to local/config.php include_once($FarmD . '/cookbook/jjsapprovepage1_2.php'); Page Variable
PasswordAction jjsapprovepage can be password protected. The password is empty by default. Edit BarThe following actions could be useful in your Site.EditBar or Group.EditBar or Site.TopPageMenu
(:if expr equal {$jjsEditRev} {$jjsApprovePageRev} || equal 'any' {$jjsApprovePageRev}:)
* [[{$Name}?action=jjscmspublish | $[Publish Page] ]]
* [[{$Name}?action=jjsapprovepage&jjsApprovePageRev=-1 | $[Revoke Approval] ]](:ifend:)
(:if expr ! equal {$jjsEditRev} {$jjsApprovePageRev}:)
* [[{$Name}?action=jjsapprovepage&jjsApprovePageRev={$jjsEditRev} | $[Approve Page Rev {$jjsEditRev}] ]]
(:ifend:)
(:if expr ! equal 'any' {$jjsApprovePageRev}:)
* [[{$Name}?action=jjsapprovepage&jjsApprovePageRev=any | $[Approve Any Rev] ]]
(:ifend:)
NotesRelease Notes
2006-03-18 1.0 Initial release 2006-03-19 1.1 Bugfix: if jjsEditRev is not present, it must be set on approval 2006-03-23 1.2 don't reset auth state in session when saving new attribute value CommentsSee AlsoContributors |