Copied to clipboard

Flag this post as spam?

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


  • Bijesh Tank 187 posts 414 karma points
    Jul 12, 2010 @ 18:36
    Bijesh Tank
    0

    Duplicate Content

    Hi,

    I'm creating a news section on a site, using CMSImport to import the data (from a separate database) into Umbraco and then using Autofolders to sort the folder structure into years and months.  Whenever I do another import, it creates a duplicate of the content articles under the month folders.  

    In CMSImport Pro there is an option to check for duplicates, but this becomes a bit of a defunct feature as Autofolders then sorts the articles into a folder structure - CMSImport relies on the articles to be in the same folder to perform the duplication check.

    Each news article has a unique article ID. Is there a way that I can use Autofolders to check the ID of the article to see if it already exists before doing the document move? (And then ideally delete it or move it to different unpublished location). In the source code, it is currently doing this:

    if (parentId != newParentFolderId)
         documentObject.Move(newParentFolderId);

     

     

    Thanks,

    Bijesh

  • Tim 1193 posts 2655 karma points c-trib
    Jul 12, 2010 @ 18:51
    Tim
    0

    I'm having a similar issue! It doesn't duplicate all of my articles though, just most of them. I've found that setting "autopublish" to false in CMSImport and then disabling the config for Autolders, running the import, then re-enabling the Autofolders config and then publishing the section and its sub-pages, seems to stop the duplication. I've only tried it with a small section of data, will be trying this more tomorrow morning!

  • Bijesh Tank 187 posts 414 karma points
    Jul 13, 2010 @ 10:50
    Bijesh Tank
    0

    I'm seeing if I can make some changes before it executes the documentObject.Move and check for duplicate items under the newParentFolderId.  Sounds simple enough - i think :)

    Let me know how you get on.

Please Sign in or register to post replies

Write your reply to:

Draft