Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#37 2008-04-23 03:43:56

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: [plugin] [ORPHAN] upm_savenew: "Save New" button for articles and forms.

Mary, I’m not sure if you also stopped developing your plug-ins, but here i have one or two features requests:

  • to auto-clean url_title before saving as new
  • to set timestamp to now (that is, the checkbox enabled). This one could be really helpful, because currently, there is some kind of bug on article navigation (on admin side) if timestamps for two articles are exactly the same. (Don’t know if this leads to any problem on the front-side).

Thanks.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#38 2008-04-23 16:26:09

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: [plugin] [ORPHAN] upm_savenew: "Save New" button for articles and forms.

Please give an elaboration on #1, I don’t understand it.

As for the second, the plugin already checks the reset time checkbox.

Offline

#39 2008-04-23 17:09:06

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: [plugin] [ORPHAN] upm_savenew: "Save New" button for articles and forms.

Thanks for your reply, Mary.

When you click on “Save new” you get a pop-up saying that you should write a new title and new url_title for this new article.
So, my request was: when you hit the “Save new” button, the url_title field is emptied.

But thinking loud, if this would be something possible, that could lead (in other circumstances, like posting comments or sending contact forms) to serious problems, like changing what the user has really submitted… that wouldn’t be fair.

About the second: oh, then I will have to check if it’s working for me, because I’ve created 6 articles in a short period of time (but not so fast as having created the six during the same minute) and all of them have the same exact timestamp.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#40 2008-04-25 16:05:27

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: [plugin] [ORPHAN] upm_savenew: "Save New" button for articles and forms.

Oops. Those warnings shouldn’t actually be there anymore, because the plugin already clears the url_title field, which should cause Txp to generate it for you.

Offline

#41 2008-04-25 16:17:34

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: [plugin] [ORPHAN] upm_savenew: "Save New" button for articles and forms.

I’ve installed the version 0.4, that is the current one at your site.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#42 2008-04-28 22:23:48

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: [plugin] [ORPHAN] upm_savenew: "Save New" button for articles and forms.

Found the problem.

v.0.4.1 released

Last edited by Mary (2013-01-24 17:27:10)

Offline

#43 2008-04-29 01:00:21

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: [plugin] [ORPHAN] upm_savenew: "Save New" button for articles and forms.

Thanks, Mary.
I’ve tested it and seems to work as expected. :)


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#44 2008-05-01 06:01:17

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: [plugin] [ORPHAN] upm_savenew: "Save New" button for articles and forms.

Little bug introduced, I think.

If creating a new form from scratch, when you hit the “Save new” (the only button there is, during new form creation), the brand new form is already saved with the “_copy” suffix.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#45 2008-05-01 10:53:29

aswihart
Member
From: Pittsburgh, PA
Registered: 2006-07-22
Posts: 345
Website

Re: [plugin] [ORPHAN] upm_savenew: "Save New" button for articles and forms.

This is the kind of thing that should be integrated into the core, not another plugin. This is why you have xPattern coming about.

Offline

#46 2008-05-01 15:24:38

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: [plugin] [ORPHAN] upm_savenew: "Save New" button for articles and forms.

If this is integrated into the core, and then a little bug like the one I reported appears, you will have to wait until the next release of the whole xPattern to fix it. Of course, there could be patches, workarounds, but not everyone out there is willing/can/have-guts to make changes into TxP/xPattern files just to fix a bug.
Upgrading a plug-in is far more easy for everyone.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#47 2008-05-01 18:43:42

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: [plugin] [ORPHAN] upm_savenew: "Save New" button for articles and forms.

Julián: That’s not a bug, that’s a feature that was supposed to always be there. Several forms cannot have their names changed for when you save as new (such as “default”) so automatically appending “_copy” is a simple way of fixing that. All you have to do is rename the form later.

Andrew: Well, that’s an interesting view, but I’m not sure why you’re posting that here. If you want to use xPattern, then use xPattern.

Offline

#48 2008-05-01 21:15:09

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: [plugin] [ORPHAN] upm_savenew: "Save New" button for articles and forms.

Mary,

not sure if I understood you, but also not sure if you understood me.
I’m saying that the “_copy” suffix is being added even when you are creating a new form from scratch, and not just when an already existing form is saved as new.
So, a new form is always getting the “_copy” suffix even when is not a copy of any other form.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

Board footer

Powered by FluxBB