Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#31 2013-10-23 08:10:49

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,376
Website GitHub Mastodon Twitter

Re: [request] Save As, Save New button for 4.5+

wet wrote:

The “Save” button would save to the current article in-place just like it did for ages, while the “Save As” button would create a new article and then save the content there.

Agree:)


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#32 2013-10-23 09:05:01

Algaris
Member
From: England
Registered: 2006-01-27
Posts: 605

Re: [request] Save As, Save New button for 4.5+

These days I mostly use Textpattern to produce a daily bulletin which is linked to from our Intranet. I use articles to display each notice on their posted date and sometimes I need to show a notice (article) on more than one date. For this I use upm_savenew to duplicate the whole article and change the posted date and URL-only title. I use this plugin multiple times everyday and my job would take a lot longer without it.

A Save As feature which duplicates the whole article would be very useful for me so that I don’t have to worry about upm_savenew breaking in the future.

—Edit—
I pretty much agree with everything Wet said. If it could duplicate the whole article including custom fields I’d be happy.

wet wrote:

bq. Save as what?

A new article, in “Draft” state, with all fields populated from the current article form.

What happens to the original article?

Nothing.

What happens if you’ve typed extra content into the original article but now saved it before you do a save as?

It is saved to the original article.

Is that lost?

No.

Last edited by Algaris (2013-10-23 09:13:28)

Offline

#33 2013-10-23 12:09:04

sacripant
Plugin Author
From: Rhône — France
Registered: 2008-06-01
Posts: 479
Website

Re: [request] Save As, Save New button for 4.5+

I don’t know if good term is model or template or pattern ?

BUT

In this debate, we must also think of the model system :

For exemple add a new status to articles : Model / Draft / Hidden / Pending / Live/ Sticky

And when you click on “write a new article” you can choose a pre-filled model.
And it may be an early approach to manage content-types in Textpattern :)

This is my contribution, if someone understands something :)

Offline

#34 2013-10-23 13:46:40

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

Re: [request] Save As, Save New button for 4.5+

How is the URL managed? How is the article title managed? Are they affixed with something to differentiate them?

Offline

#35 2013-10-23 14:57:23

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,376
Website GitHub Mastodon Twitter

Re: [request] Save As, Save New button for 4.5+

philwareham wrote:

How is the URL managed? How is the article title managed? Are they affixed with something to differentiate them?

When a new populated unsaved page opens, maybe two of the things which do not transfer through is the title and the urls.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#36 2013-10-23 15:42:18

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: [request] Save As, Save New button for 4.5+

Here’s how I would envision “Save New” working. Not terribly complicated.

  1. Open “My Article”
  2. Make some edits
  3. Save (state #1)
  4. Make some more edits
  5. “My Artice” remains unsaved but the write page is at (state #2)
  6. Save as (has the following effect)
    • “My Fruity Article” is created (state #2) with the following field variations (everything unedited remains the same)
      • Status: Draft
      • Timestamp: either “Now” or offset by 1 second from the original (for time based lists)
      • Url Title (method #1)
        • Simply appends “-copy” (unless you override the url title, you might end up with “my-article-copy”, “my-article-copy-copy”)
      • Url Title (method #2)
        • Candidate is obtained from the Title
        • If a duplicate URL Title Exists compared to candidate, append “-N” (you might end up with my-fuity-article-1,my-fuity-article-2, etc…)
  7. “My Article” remains at (state #1)

Last edited by mrdale (2013-10-23 15:47:43)

Offline

#37 2013-10-23 16:59:46

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,376
Website GitHub Mastodon Twitter

Re: [request] Save As, Save New button for 4.5+

Because of #6.3 and #6.4, I would definitely be happy with an unsaved version of the article with a publish button in place:)


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#38 2013-10-23 17:11:20

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: [request] Save As, Save New button for 4.5+

colak wrote: Because of #6.3 and #6.4, I would definitely be happy with an unsaved version of the article with a publish button in place:)

‘Splain a bit more?

Do you mean clicking “save new” would simply make the publish button replace the save button?

Last edited by mrdale (2013-10-23 17:49:54)

Offline

#39 2013-10-23 18:55:53

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,376
Website GitHub Mastodon Twitter

Re: [request] Save As, Save New button for 4.5+

In a word: yes. The function could become slightly more involved by changing the displayed time to the current time and emptying the title and the URL fields.

The button itself could become either disabled or invisible until the article is published.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#40 2013-10-23 21:42:32

tye
Member
From: Pottsville, NSW
Registered: 2005-07-06
Posts: 859
Website

Re: [request] Save As, Save New button for 4.5+

I think the ‘Save As’ idea is really good and have used the clone feature Stef mentions in ecommerce sites where it is essential.

I can see the pros and the cons, but after reading through all the areas which would require consideration, is it really needed in the core – am I the only one who is thinking this is plugin area (Dev Core Plugins!!!)?

Then again… it would be a really nice feature which would put txp ahead in the great CMS race if it doesn’t already exist in others.

Offline

#41 2013-10-23 22:23:20

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: [request] Save As, Save New button for 4.5+

Advantage of it being in core means that it no longer needs parallel maintenance, and is not likely to become an orphan plugin.

@Colak, I prefer more automatic behavior than the method you mention.

Offline

#42 2013-10-23 22:32:32

tye
Member
From: Pottsville, NSW
Registered: 2005-07-06
Posts: 859
Website

Re: [request] Save As, Save New button for 4.5+

mrdale – that applies to all plugins :)

Offline

#43 2013-10-24 01:54:18

towndock
Member
From: Oriental, NC USA
Registered: 2007-04-06
Posts: 335
Website

Re: [request] Save As, Save New button for 4.5+

I so don’t get how this is an issue to hassle Devs with.

Copy. Paste.

Next.

Offline

#44 2013-10-24 08:55:54

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: [request] Save As, Save New button for 4.5+

copy/paste once, sure. copy/paste 25 separate times between two open write windows? er not so next

I just realized the error of my thinking. I should be using TXP as a simple blog engine, and not as a pseudo framework. We wouldn’t need anything as spectacular as “Save New” button and the gods of Olympus would not have to be bothered with such pointless human trivia.

;)

Offline

#45 2013-10-24 11:02:31

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

Re: [request] Save As, Save New button for 4.5+

Chill out Dale. Robert has already expressed an interest in adding that function so maybe he can work it into the write page in a satisfactory manner (next to the ‘create new’ button maybe). For now there is a duplicate function in the article list to help you out.

Offline

Board footer

Powered by FluxBB