Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Tom Madden 252 posts 454 karma points MVP 4x c-trib
    Sep 09, 2016 @ 10:43
    Tom Madden
    0

    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

  • Nigel Wilson 944 posts 2076 karma points
    Sep 10, 2016 @ 18:41
    Nigel Wilson
    0

    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

  • Anders Brohäll 295 posts 561 karma points c-trib
    Sep 23, 2016 @ 11:31
    Anders Brohäll
    0

    Also, when deleting a tag, the linked documents doesn't get updated. Same issue?

  • Nigel Wilson 944 posts 2076 karma points
    Jan 17, 2017 @ 02:40
    Nigel Wilson
    0

    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

  • Anders Brohäll 295 posts 561 karma points c-trib
    Jan 17, 2017 @ 13:18
    Anders Brohäll
    0

    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.

  • Nigel Wilson 944 posts 2076 karma points
    Jan 17, 2017 @ 16:45
    Nigel Wilson
    0

    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

    1. You start with the node ID
    2. You get the node
    3. You then have to iterate through all the properties on the node to find the tag property
    4. Update the data on the node
    5. Repeat for all nodes / media tagged with the tag being updated.

    So this is what I will start working on but will take a bit of time...

    Cheers, Nigel

  • Nigel Wilson 944 posts 2076 karma points
    Jan 26, 2017 @ 00:16
    Nigel Wilson
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft