How does one go about deleting translated nodes?
I mean, deleting the source node does not seem to delete the translations of this node. Do I have to go hunting for the other nodes, too?
I understand that in some case you might NOT want to delete all the other translated nodes, but shouldn't there be an option during deletion time...?
Thanks.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | patch.txt | 2.03 KB | stratosgear |
Comments
Comment #1
jose reyero commentedThis may be a good option to add to the synchronization module (i18nsync)
Comment #2
stratosgear commentedOK Jose,
Here is a version I whipped up. Tests and works fine on my installation, but you should definetely take a look because I'm not that experienced with Drupal yet.
What I've done:
* The node delete confirmation page also offers a list of checkboxes with all the available translations.
* You just have to check the additional nodes to be deleted and click Delete.
* The checked checkboxes are iterated through in i18nsync_node_delete_submit and node_delete is called on each checked node.
The only problem, is that I just can't reorder the form items and the checkboxes appear bellow the Delete, Cancel buttons. Just don't know how to "pull" them higher up.
Thanks
PS: It's really difficult to produce a clean patch on i18nsync.module as it has a lot of trailing spaces, that Eclipse just keeps removing. I hand removed them so you can see what I did.
Comment #3
tomsm commentedThis is a great feature that should be added.
Comment #4
stratosgear commentedHave you tried the patch?
I would be interested to know of any potential problems.
Comment #5
tomsm commentedNo, I did not. Sorry, I am not very familiar with applying patches.
Comment #6
jose reyero commentedThe patch looks good though it needs some more work.
It is missing some permission checking and filtering on node titles (check_plain). Anyway we may not need all node titles, maybe a single 'delete translations' check box would do and could simplify the patch.
I like the idea, looks like a good starting point.
Comment #7
jose reyero commentedCleaning old issues (> 1 year without follow up)
Comment #8
mortician commentedAny update on this?
Comment #9
marinex commentedHere is my part of the patch:
I add node_access check control and check_plain control and finaly I edit weight of form items to be upper.
Comment #10
jose reyero commentedIt is just too late for new features for 6.x
Comment #11
jose reyero commentedSee #1859486: Option to delete all translations when deleting source node (nid=tnid)
(for D7)