Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2005-10-08 08:10:06

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

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

hi mary,
Started using your plugin and it looks great.
there’re a couple of small problems however. On saving new the plugin does not save all fields.
ie it does not save the URL-only title inserting the default instead
it publishes the article on the same date/time as the article which was edited. (even if I click the “Reset time to now”)

I hope I made sense here…:)


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

Offline

#14 2005-10-08 20:11:28

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

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

The url-only title wouldn’t be changed, you have to change it (just clean it out). I added some JavaScript to the plugin to try and clear that field out for you, so make sure JavaScript is turned on. Are you certain that you aren’t getting any JavaScript errors? This part works fine for me.

The date part is odd. All that the plugin is is a button that passes a value telling Textpattern it is a new post, so that should be changable. I’ll check it out later and see what I can figure out.

Offline

#15 2005-10-09 00:25:22

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

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

Okay, make sure you gave your post a new title, otherwise Textpattern will generate the same url title as the original article. :)

I can see the date thing now, and I see why. Fixed.

Offline

#16 2005-11-26 17:41:14

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

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

Mary, I love this plugin. Next best thing to a revisions module…

BUT. Sometimes the save-new doesn’t show up on the write page ok on the forms page. Can’t figure out why. Conflict with bas_image_select or rss_show_advanced-options ?

[edit] the latest bas_image_select is the problem! RATS, both plugins are indispensible. Save_new should be rolled into the basic TXP install, It’s pretty fundamental.

Last edited by mrdale (2005-11-26 18:01:59)

Offline

#17 2005-11-26 20:32:03

NeilA
Member
From: Blue Mountains, Australia
Registered: 2004-08-15
Posts: 316
Website

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

> mary wrote:
I can see the date thing now, and I see why. Fixed.

Cool.
A small thing, but I’m glad that’s fixed…
I second the call to merge this function into the core of TXP.

Thanks Mary.


Neil – Blue Mountains, Australia

http://westserve.org
http://ministrygrounds.net.au

Offline

#18 2006-02-09 07:03:42

tinyfly
Member
From: Dallas, Texas
Registered: 2004-05-10
Posts: 462
Website

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

mary is no longer maintaining this plugin – a copy of the last release is available here from upm-plugins archive

(Edit: that’s not the case anymore. See above for the download. :) -Mary)

Last edited by Mary (2006-05-14 22:56:11)

Offline

#19 2006-05-14 21:06:32

transph0rmer
Member
From: Europe
Registered: 2004-12-24
Posts: 14

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

Also have got the problem with the bas_image_select plugin, anyone got both plugins working together?

Offline

#20 2006-05-14 22:56:25

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

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

Make sure you have the newest copies of both plugins.

Offline

#21 2006-06-13 16:20:05

rloaderro
Archived Plugin Author
From: Costa Rica
Registered: 2006-01-05
Posts: 190
Website

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

Mary,

I just discovered this plug and think it is great!! definitely a required plugin!! I think it is missing an important feature though! When you are logged in as a non-publisher/editor user, and open an article that you do not have priveleges to modify, neither the save or save new buttons appear. Natch the save should not appear because you do not have permission to modify the original article – but if the save new appeared it would allow editors/publishers to design templates without the risk of writers saving over them. I hope I have explained this correctly. What do you think?

Edit- I achieved this by changing this function in the plugin:
<code>
function upm_savenew_article($buffer) { $find = ‘</td></tr></table></form>’; $replace = ‘<input type=“submit” name=“publish” value=”’.gTxt(‘save_new’).’” class=“publish” onclick=“return upm_savenew_check(\‘article\’);” />’;

return str_replace($find, $replace.$find, $buffer);
}
</code>

Though I don’t know if that was the wrong thing to do…

Last edited by rloaderro (2006-06-13 17:47:59)


Travel Atlas * Org | Start Somewhere

Offline

#22 2006-06-13 18:52:02

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

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

I’m not sure if that should be possible or not, being able to save new off of someone else’s article. While I can see the use of that, I can see where you wouldn’t want that either. Guess I’ll need to add a setting for this.

Offline

#23 2006-06-13 19:27:23

rloaderro
Archived Plugin Author
From: Costa Rica
Registered: 2006-01-05
Posts: 190
Website

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

Mary wrote:

I’m not sure if that should be possible or not, being able to save new off of someone else’s article. While I can see the use of that, I can see where you wouldn’t want that either.

But I don’t see how that could be avoided. Textpattern already allows someone to open an article they do not have permission to modify – the plugin just saves the step of having to select-copy-paste (and sets the other variables too of course). TXP doesn’t have permissions for sections/categories – that’s why I suggested this plugin for the core – having a Save As is a huge boon to productivity…


Travel Atlas * Org | Start Somewhere

Offline

#24 2006-07-12 20:41:17

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,595
Website

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

Just an info: in the current dev, the addition of tabindex=“4” to the save button means upm_savenew no longer matches the search string. Include tabindex=“4” in the search string and it works again ( one could also making save new tabindex=“5”).


TXP Builders – finely-crafted code, design and txp

Offline

Board footer

Powered by FluxBB