Copied to clipboard

Flag this post as spam?

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

  • Joseph 59 posts 140 karma points
    Mar 12, 2015 @ 04:33

    Merging tags doesn't seem to update tagged content (Umbraco 7)


    I've run into a problem using the Tag Manager in Umbraco 7 where when I use it to merge tags; it seems to do it correctly from a tags perspective (i.e. moving all content references from the old tag to the new tag) but it doesn't update the actual content's tag control. And so we end up in a weird situation where the content still thinks that it's tagged to the old tag but the Tags api will not recognize that change.

    I checked this scenario in Umbraco 6 and what appears to happen is the tag control updates correctly (potentially a republish all after a tag merge is required to be able to make sure that tags are showing up correctly on the website). Incidentally, I am using a 3rd party tag control in Umbraco 6 (SniperTags) and am using the out-of-the-box tag control in Umbraco 7 (where I am having issues).

    Anyone else able to reproduce this problem?

  • Magnus 3 posts 73 karma points
    Jan 01, 2016 @ 23:15

    Yep, I'm seeing this as well. It seems to me that the Tag Manager packages does not modify the site content at all, but only makes changes to the database tables, that are used to track relationship between nodes and tags in Umbraco.

    When looking at the source for the package, this also seems to be the case (see the Save method here as an example:

    As the tags on a content node is stored as a JSON or CSV blob in the cmsPropertyData table, and thus are also stored in the XML cache, updating the actual tags on the content nodes would involve updating and publishing potentially a lot of nodes when renaming or merging tags.

    I don't really see the reason for Umbraco to even maintain a cmsTagRelationship table, but i guess it's there for a reason.

Please Sign in or register to post replies

Write your reply to: