I imagine the forms API will need to be updated if nothing else...

Comments

bomarmonk’s picture

StatusFileSize
new2.31 KB

Here is an attempt at a patch. Something is wrong with it, but I did update the forms_api and the node_list calls (as many as I found) and it almost seems to work. No errors, but the settings aren't visible and I'm not sure it is "Editing as new" in the proper way-- I don't really have any nodes in my 4.7 install. Hopefully, someone else can take my steps and finish the job.

bomarmonk’s picture

Status: Active » Needs work
StatusFileSize
new6.55 KB

Also, here is the patched module, somewhat updated for 4.7.

javanaut’s picture

Thanks!

I'll test this soon.

sami_k’s picture

I tried to test is, setting menu doesn't work.. Functionality with flexinode doesn't work.

hystrix’s picture

Tried the patched version above on 4.7-beta6.

The edit-as-new tab shows up on existing nodes. When I click on it generates a new node, but all content is blank.

Also as reported by others:
Admin -> Settings -> Edit As new doesn't render any options.

urbanfalcon’s picture

Status: Needs work » Needs review
StatusFileSize
new5.98 KB

Well, in order to make everything work fully with the 4.7 form API changes, a lot of additional alterations had to be made. Unfortunately, the new form API is so specific about how it defines every piece of a form, it's really not possible to blanketly copy everything over from old node to new as was done before. In addition, I couldn't get taxonomy terms to copy over as long as the module was named 'editasnew' - I am guessing that's because "e" comes before "t" in taxonomy.module, and so my pre-filled taxonomy boxes were getting nulled back to square one. So, here's template.module - it works insofar as copying title, taxonomy terms, and body. It is configurable as before with the added option of being able to rename the tab itself. If someone finds a better way, I'd love to get an email about it!

roberb7’s picture

I just tried editasnew, and got "Fatal error: Call to undefined function: node_list() in /home/.dolly/rbrought/nwtennis.com/modules/editasnew.module on line 78". It doesn't matter whether it's a story or an event.

We really need to have this working with events, guys. The absence of a "recurring" feature in events is already a major drawback.

bomarmonk’s picture

Recurring feature with events? Try event_repeat, if you haven't already. It only works with Drupal 4.7, but it seems to function rather well....

whereisian’s picture

Just wondering if there has been any activity on this. I'm currently looking for this type of module.

Cheers.

jcarlson34’s picture

Status: Needs review » Closed (won't fix)

This project has had no activity for years. Therefore closing this thread to clean up d.o issue queue a bit.