Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Page Drafts
#8
Fixed some bugs, added some features

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.
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply


Messages In This Thread
Page Drafts - by shawn_a - 2014-09-17, 06:33:53
RE: Page Drafts - by shawn_a - 2014-09-17, 06:43:11
RE: Page Drafts - by shawn_a - 2014-09-17, 09:22:55
RE: Page Drafts - by hameau - 2014-09-17, 18:41:39
RE: Page Drafts - by shawn_a - 2014-09-17, 22:41:22
RE: Page Drafts - by hameau - 2014-09-18, 03:45:42
RE: Page Drafts - by shawn_a - 2014-09-17, 23:16:22
RE: Page Drafts - by shawn_a - 2014-12-06, 08:45:18



Users browsing this thread: 1 Guest(s)