Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Here is a patch updating the clone link views field handler to work with views 3.
Patches are against both dev and beta1.
Comment | File | Size | Author |
---|---|---|---|
#16 | 1246894-16.patch | 3.05 KB | pwolanin |
#14 | node_clone_1246894-14_views.patch | 3.2 KB | johnv |
#4 | views.patch | 2.86 KB | RobLoach |
#1 | node_clone-7.x-1.x-views.patch | 2.87 KB | tnightingale |
#1 | node_clone-7.x-1.0-beta1-views.patch | 2.86 KB | tnightingale |
Comments
Comment #1
tnightingale CreditAttribution: tnightingale commentedWhoops, forgot to roll patches with latest changes!
Here are working patches
Comment #2
Summit CreditAttribution: Summit commentedHi, When will a new dev for 7 will be made. I see a version from february 2011..
thanks for going into that.
Subscribing, greetings, Martijn
Comment #3
peterjlord CreditAttribution: peterjlord commentedGreat already done. I was just going to have a go at this one rather than doing at theme level.
Thanks job well done.
Comment #4
RobLoachUpdated, tested, works.
Comment #5
kristof.bourgeois@telenet.be CreditAttribution: kristof.bourgeois@telenet.be commentedHi,
After installing the patch i get an error when I try to get the clone link into my view.
I've made a table view with all my nodes and I trying to get the posibility to edit , copy and delete the nodes.
the error says:
The handler for this item is broken or missing and cannot be used. If a module provided the handler and was disabled, re-enabling the module may restore it. Otherwise, you should probably delete this item.
Thanks for any help
Comment #6
RobLoachViews 3?
Comment #7
kristof.bourgeois@telenet.be CreditAttribution: kristof.bourgeois@telenet.be commentedYes, I use the last version of Drupal (7.10)
Comment #8
RobLoachComment #9
lokolo CreditAttribution: lokolo commentedPatch doesnt work for me, after enabling it in views I get an AJAX Error:
and after saving the view the whole site is unreachable, just get a blank page with the same fatal error message.
Drupal 7 and all Contribute Modules are up to date
Comment #10
kristof.bourgeois@telenet.be CreditAttribution: kristof.bourgeois@telenet.be commentedI had a look at the module but i am not able to fixed it.
I guess we have to wait till it fixed of another module shown up...
Comment #11
kristof.bourgeois@telenet.be CreditAttribution: kristof.bourgeois@telenet.be commentedHi guys,
This module works perfect with views 3!
The problem was I was forgotten to add the path at the .info file.
Comment #12
jbiechele CreditAttribution: jbiechele commentedThe patch from #4 doesn't work on my project, using node_clone 7.x-1.x-dev and patch #4 applied.
Function clone_access() could not be found.
A suggestion for the code in views_handler_field_node_link_clone.inc:
This version works for me as users only have the permission to clone their own nodes.
May be user_access() should be adjusted like that?
Comment #13
morbiD CreditAttribution: morbiD commentedShouldn't that use AND rather than OR? Otherwise a user will need both permissions to see the link. I changed it to the following and it seems to work:
Comment #14
johnvSee attached patch against latest Views -dev version.
It respects 'clone' permissions and resembles more the default 'Edit link'.
Comment #15
pwolanin CreditAttribution: pwolanin commentedLooks ok, but there are some commented out lines that shoudl be removed in the views handler:
Comment #16
pwolanin CreditAttribution: pwolanin commentedcommitting this patch
Comment #17
pwolanin CreditAttribution: pwolanin commentedbackport?
Comment #19
pwolanin CreditAttribution: pwolanin commentedI think no backport is worth while