Copied to clipboard

Flag this post as spam?

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


  • Tom Harrington 10 posts 30 karma points
    Sep 03, 2014 @ 16:22
    Tom Harrington
    0

    Issue with programatically generating content

    Hi,

    I have been using uBlogsy, and have hijacked the uTagsy functionality to add tags to an FAQ section of my site. As such my FAQ document type has a "tags" property.

    When I manually create an FAQ everything works perfectly, the tag property editor in the back office correctly displays all the existing tags and adding new ones creates them correctly under the tag container node.

    This website is a port from an old site, and as such, using the umbraco API, I have programatically added a lot of FAQs, using our old DB as a source (which also has tags and links to the FAQs). That import routine begins by creating all the tag nodes. It then creates the FAQ nodes, setting the csv "tags" property to correctly link the newly created tag nodes to each appropriate FAQ.

    When I view these FAQs rendered on our site everything is correct, and the tags are correctly found, linked to the FAQ. From the front everything is perfect. However, in the backend, the tags property editor is not behaving correctly. The tags property on the FAQ are always empty, and clicking 'Show/hide all tags' shows an empty list. However I can see all the tags nodes correctly exist in the content tree, they are just not shown in the property editor. As I said, this all works fine when created manually using the umbraco backoffice. I have double checked the data in the cmsPropertyData table, and everything appears to be correct, and the same as manually created ones.

    Can you provide any help as to why the property editor would not be correctly loading the list of tags, or showing the assigned tags?

    I have checked that the nodes are published, tried republishing them, rebuilt the site and the cache. No luck so far.

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Sep 04, 2014 @ 10:23
    Anthony Dang
    0

    Interesting..

    Which version of Umbraco and uTagsy?

    The only thing I can think of is if the tag nodes you created in your import don't have the same Doctype as the one uTagsy is expecting. Or something strange is happening in the frontend? Check for console errors?

     

    Can you show me a screenshot of your tree?

     

  • Tom Harrington 10 posts 30 karma points
    Sep 04, 2014 @ 11:42
    Tom Harrington
    0

    What a wally I am!

    I realised that I had been focusing on the FAQ nodes when comparing the database records, rather than the tag nodes themselves.

    What I'd done was not set the uTagsTagName property of the imported tags. Because the node name of the tag was correct though, the content tree looked correct. But in the property editor it was showing the uTagsyTagName which was blank for all the tags, hence looking like there were no tags set, and none in the 'show/hide all' list.

    Thanks for your help anyway though Anthony, it prompted me to look more closely at the tag nodes.

    I know it doesn't matter now, but FYI I'm using umbraco 7.1.6 and whichever version of uTagsy is shipped with uBlogsy 4.1.

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Sep 05, 2014 @ 14:45
    Anthony Dang
    0

    Cool... Glad you sorted it. Sometimes it just takes someone asking the right questions :)

     

Please Sign in or register to post replies

Write your reply to:

Draft