2014-12-06, 08:45:18
Fixed some bugs, added some features
here are the new definitions
Using these you can do the following
You can disable the PUBLISHED label
You can toggle the default edit mode to draft or published
pages now have a draft label (which is also filterable) until something better can be implemented
You can disable the pagestack, in which case the only way to get to drafts woulds be with the querystring
`draft`
If your site is in not in production you might want to turn off drafts completely.
If you have a small or internal site you can set GSDRAFTSTACKDEFAULT to false so you are always editing the published version, but can easily switch to a draft when needed
For a high traffic site, and you have to edit in draft mode always, leave it true
If you want draft support but rarely need it or want some custom impementation, say drafts only for certain pages.
disable the page stack and use tour own links with &draft in the edit.php querystring to edit draft versions.
here are the new definitions
PHP Code:
'GSUSEDRAFTS' => true, // (bool) use page drafts
'GSUSEPAGESTACK' => true, // (bool) use page stacks for drafts, else `nodraft` or `draft` only
'GSDRAFTSTACKDEFAULT' => true, // (bool) default page stack editing to drafts if true
'GSSDRAFTSPUBLISHEDTAG'=> true, // (bool) show published label on non draft pages if true
Using these you can do the following
You can disable the PUBLISHED label
You can toggle the default edit mode to draft or published
pages now have a draft label (which is also filterable) until something better can be implemented
You can disable the pagestack, in which case the only way to get to drafts woulds be with the querystring
`draft`
If your site is in not in production you might want to turn off drafts completely.
If you have a small or internal site you can set GSDRAFTSTACKDEFAULT to false so you are always editing the published version, but can easily switch to a draft when needed
For a high traffic site, and you have to edit in draft mode always, leave it true
If you want draft support but rarely need it or want some custom impementation, say drafts only for certain pages.
disable the page stack and use tour own links with &draft in the edit.php querystring to edit draft versions.