Exemplo n.º 1
0
        public static void CopyArticlesLinks(int sourceSiteId, int destinationSiteId, string relationsBetweenArticles)
        {
            var relBetweenLinks = ContentRepository.GetRelationsBetweenLinks(sourceSiteId, destinationSiteId);

            ContentRepository.CopyArticleWorkflowBind(sourceSiteId, destinationSiteId, relationsBetweenArticles);
            ContentRepository.CopyItemToItems(relationsBetweenArticles, relBetweenLinks);
        }
Exemplo n.º 2
0
        public static void UpdateArticlesLinks(int sourceSiteId, int destinationSiteId, string relationsBetweenArticles)
        {
            ContentRepository.UpdateO2MValues(sourceSiteId, destinationSiteId, relationsBetweenArticles);
            ContentRepository.CopyArticleWorkflowBind(sourceSiteId, destinationSiteId, relationsBetweenArticles);

            var relBetweenLinks = ContentRepository.GetRelationsBetweenLinks(sourceSiteId, destinationSiteId);

            ContentRepository.UpdateContentDataAfterCopyingArticles(relationsBetweenArticles, relBetweenLinks);
            ContentRepository.CopyItemToItems(relationsBetweenArticles, relBetweenLinks);
            ContentRepository.UpdateItemToItem(relationsBetweenArticles, relBetweenLinks);
            ContentRepository.UpdateAttributesAfterCopyingArticles(destinationSiteId, relationsBetweenArticles);
        }