Tag Manager doesn't update content in the document when merging tags
When you use the tag manager to merge two tags, it only updates the tag relationship data to the content node but doesn't update the data in the content node itself. This is okay if you have 2 duplicate tags with the same text, but is you have a tag with a typo in the name and merge that into a correctly spelled tag the original content will still show the incorrect spelling.
To correct this I think the tag manager needs to also update the related content nodes with the text of the node being merged being replaced with the text of the destination node.
Yeah it is a bit of a pain this aspect - the data is written to the node rather than a simple foreign key setup.
Haven't thought through how to achieve this but when merging tags you'd have to select each node by the ID, grab the content in the property, find and replace based on the tags affected and save the node. I'd be reluctant to save and publish the node just in case there were outstanding changes (appreciate this is edge case, but gotta keep it in mind).
For me a full update would work best. Meaning that if i edit a tag in the manager it will update the tag - wherever it is used. Same thing when deleting, i'd prefer it to remove all usage of the tag.
As if it was an Umbraco node that was linked per se.
Tag Manager doesn't update content in the document when merging tags
When you use the tag manager to merge two tags, it only updates the tag relationship data to the content node but doesn't update the data in the content node itself. This is okay if you have 2 duplicate tags with the same text, but is you have a tag with a typo in the name and merge that into a correctly spelled tag the original content will still show the incorrect spelling.
To correct this I think the tag manager needs to also update the related content nodes with the text of the node being merged being replaced with the text of the destination node.
t
Hey Tom
Yeah it is a bit of a pain this aspect - the data is written to the node rather than a simple foreign key setup.
Haven't thought through how to achieve this but when merging tags you'd have to select each node by the ID, grab the content in the property, find and replace based on the tags affected and save the node. I'd be reluctant to save and publish the node just in case there were outstanding changes (appreciate this is edge case, but gotta keep it in mind).
Your thoughts ?
Cheers Nigel
Also, when deleting a tag, the linked documents doesn't get updated. Same issue?
Hi Anders
A very long delay in responding to your question - sorry.
Yes it is the same issue.
I have just re-coded the package using the latest version of Umbraco and so the issue of updating and deleting a tag is now foremost in my mind.
Do you have any thoughts / suggestions regarding whether or not to publish the updated nodes ? I am still thinking a "save only" is the safest option.
Cheers, Nigel
For me a full update would work best. Meaning that if i edit a tag in the manager it will update the tag - wherever it is used. Same thing when deleting, i'd prefer it to remove all usage of the tag.
As if it was an Umbraco node that was linked per se.
Hi Anders
Yes that is the intention, but to update a node a bit of work, and depending on the number of nodes tagged, quite a bit of processing
So this is what I will start working on but will take a bit of time...
Cheers, Nigel
Hi Anders
I have just released an updated package.
https://our.umbraco.org/projects/backoffice-extensions/tag-manager/
When editing / deleting tags, all nodes / media are now updated and published (if no unpublished changes exist).
Be great if you could give it a run through and see if there are any issues - a fresh set of eyes is always good.
Cheers Nigel
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.