Try our conversational search powered by Generative AI!

Missing files when exporting and importing

Vote:
 

I have problems with missing files when I export pages from one site and import them on another site...

I have declared a Property for a collection of documents:

        [BackingType(typeof(PropertyRelatedDocuments))]
        public virtual LinkItemCollection Documents { get; set; }

where PropertyRelatedDocuments is declared as (PropertyLinkCollection inherits IReferenceMap):

    [Serializable]
    [PropertyDefinitionTypePlugIn(DisplayName = "XXX", Description = "YYY")]
    public class PropertyRelatedDocuments : PropertyLinkCollection
    {
        public override IPropertyControl CreatePropertyControl()
        {
            return (IPropertyControl)new PropertyRelatedDocumentsControl();
        }
    }

When I add documents to this property they won't be exported when I do an export and import...

Any suggestions?

#90013
Sep 01, 2014 10:28
Vote:
 

Hi Robert

If you try to add a test aspx file and change the pagereference and propertyname do you get new links, or just the old?

Could it be that you internal store links and not the guid links?

 

<%@ page language="C#" autoeventwireup="true" codebehind="TestLinkCollection.aspx.cs" inherits="System.Web.UI.Page" %>





    


    
<%=testpage(new episerver.core.pagereference(38),"documents") %>
#90028
Sep 01, 2014 12:47
Vote:
 

This is what I get when I run this for a property with 2 items:

Found

~/link/7b5398668232471b8d96bfcf36a1da76.jpg

~/link/36204bc11e304ce5b614a859a9bdb8d3.pdf

7b539866-8232-471b-8d96-bfcf36a1da76=634698b1-87f4-459b-ae84-3442579551fc36204bc1-1e30-4ce5-b614-a859a9bdb8d3=f36a8354-6480-48ca-a4a1-c0e732d51833
Trying to change

~/link/634698b187f4459bae843442579551fc.jpg

~/link/f36a8354648048caa4a1c0e732d51833.pdf

What does that mean?!

#90056
Sep 01, 2014 14:38
Vote:
 

It means that the link got changed. But can't see why It will not be copied.

#90057
Sep 01, 2014 14:43
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.