Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2011-08-07 21:13:53

net-carver
Archived Plugin Author
Registered: 2006-03-08
Posts: 1,648

sed_default_article_status

Following on from the discussion here, a little plugin that allows you to choose the default article status.

Change Log & download links.

Version Date Notes Source Download Link
v0.4.1 9th Aug, 2011 Removed an old line of help text. Source Compressed
v0.4 9th Aug, 2011 Show/hide the advanced pref on plugin enable/disable. Source Compressed
v0.3 8th Aug, 2011 Replace the text input box with a status select control. NB: To upgrade to v0.3, please delete v0.2 from your installation before you install v0.3. Source Compressed
v0.2 7th Aug, 2011 Adopted as the basis of this sed plugin. Adds a preference to the admin > prefs > advanced > publish section to control default status. Source Compressed
v0.1 7th Aug, 2011 Initial release by Destry Wion as a pub plugin. Source Uncompressed

Last edited by net-carver (2011-08-09 21:46:44)


Steve

Offline

#2 2011-08-08 00:23:37

merz1
Member
From: Hamburg
Registered: 2006-05-04
Posts: 994
Website

Re: sed_default_article_status

Love sed_default_article_status. Thanks!

OK Installed & activated
Checked publish options and it shows 4
I thought 1 would be default?
Changed to 1 and everything looks fine

Note/FYI: I am using upm_savenew (0.4.2) from Mary Fredborg (“Save New” button for articles and forms). The “Save New” function is unchanged = “Save New” as ‘live’ and it stays ‘live’ so you still have to change the status manually before “Save New”.
Not sure if this behavior of upm_savenew can be changed somehow.


Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML

Offline

#3 2011-08-08 11:37:15

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,564
Website GitHub Mastodon

Re: sed_default_article_status

This is great, just installed on all my Textpattern sites. IMO this should be an option in the core for TXP5 since I’m always getting clients accidentally putting half-written articles live on their sites (for which I get moaned at of course!).

Offline

#4 2011-08-08 14:32:23

maverick
Member
From: Southeastern Michigan, USA
Registered: 2005-01-14
Posts: 976
Website

Re: sed_default_article_status

philwareham wrote:

IMO this should be an option in the core for TXP5

+1

Or even 4.4.x.

I get, and like, the simplicity of the concept of having the work flow being write page/publish by default. But given Txp’s team publishing paradigm I’ve been puzzled why draft wasn’t default, or at least an option for default.

Offline

#5 2011-08-08 17:32:20

net-carver
Archived Plugin Author
Registered: 2006-03-08
Posts: 1,648

Re: sed_default_article_status

v0.3 posted.

Changes…

  • the free-form text input box to a proper status select control.

To opening post for links


Steve

Offline

#6 2011-08-08 17:42:42

merz1
Member
From: Hamburg
Registered: 2006-05-04
Posts: 994
Website

Re: sed_default_article_status

Hmm, updated to sed_default_article_status 0.3.8

  • activated sed_default_article_status
  • going to write … draft is active: OK
  • going to options: still the free-form text input box and no proper status select control
  • Logging out & in again
  • going to options: still the free-form text input box and no proper status select control

Reproducible?


Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML

Offline

#7 2011-08-08 17:45:14

net-carver
Archived Plugin Author
Registered: 2006-03-08
Posts: 1,648

Re: sed_default_article_status

Hi Markus,

thanks for the feedback. I’ll see if I can reproduce that here.


Steve

Offline

#8 2011-08-08 17:52:41

net-carver
Archived Plugin Author
Registered: 2006-03-08
Posts: 1,648

Re: sed_default_article_status

Yes, indeed, looks like the set_pref call doesn’t work quite the way I thought.

This will only be a problem for those of you going from v0.2 -> v0.3. Fresh installs should be fine. In the meantime, please could you try this work-around…

  1. Go to Admin > Plugins & delete sed_default_article_status.
  2. Reinstall and enable.

Hope that helps.


Steve

Offline

#9 2011-08-09 00:30:19

net-carver
Archived Plugin Author
Registered: 2006-03-08
Posts: 1,648

Re: sed_default_article_status

v0.4 posted

Adds…

  • Better handling of plugin pref when plugin enabled/disabled.

To opening post for links


Steve

Offline

#10 2011-08-09 13:07:59

merz1
Member
From: Hamburg
Registered: 2006-05-04
Posts: 994
Website

Re: sed_default_article_status

Is installed: sed_default_article_status 0.3.8
Updated to: 0.4.11

  • activated sed_default_article_status
  • going to write … draft is active: OK
  • going to options: still the free-form text input box and no proper status select control

Deleted 0.4.11
Deinstallation: OK (no pref, ‘live’ status is default)

Reinstalled 0.4.11

  • activated
  • write: ‘live’ is active (?)
  • changed drop-down in admin prefs to ‘draft’
  • write: ‘draft’ is active

Shouldn’t ‘draft’ be the active default status after installation & activation?


Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML

Offline

#11 2011-08-09 19:20:32

net-carver
Archived Plugin Author
Registered: 2006-03-08
Posts: 1,648

Re: sed_default_article_status

merz1 wrote:

Shouldn’t ‘draft’ be the active default status after installation & activation?

Maybe. For now I have the default initial setting setup to follow the core and use live. If we can hash out a consensus in this thread as to which of Pending, Draft or Hidden should be the plugin’s default then I’ll build that in to the next release.


Steve

Offline

#12 2011-08-09 19:36:04

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,564
Website GitHub Mastodon

Re: sed_default_article_status

I personally think you should leave it at the core default (live) on installation and let the plugin user change it to whatever they wish afterwards.

Last edited by philwareham (2011-08-09 21:29:45)

Offline

Board footer

Powered by FluxBB