Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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)
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!
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.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted