Site structure
Version 5.x > Site structure > Unlink linked document View modes: 
User avatar
Member
Member
Webcoda - 1/18/2011 9:43:40 PM
   
Unlink linked document
Hi,

Is there a way to unlink linked document?

We have a requirements to create satellite sites that would initially replicate the content of the main site. Then if required the content can be changed on the satellite site.
I wanted to implement this using linked documents, but can't see how can I unlink the document to make it editable as normal page.

Thanks,
Oleg

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 1/19/2011 9:58:18 AM
   
RE:Unlink linked document
Hi,

I would like to suggest you to use our content staging module instead of the linked document.

Using content staging module the content will be replicated to satellite sites and the content can be changed on satellite site as well (will not be changed on the original site) if needed.

In case of linked document there are two records created in the CMS_Tree table, but both records point to one record in the CMS_Document table (the content of document is stored only once). Therefore you cannot create two documents from one if you unlink the document to make the linked document editable as the common page.

Best regards,
Ivana Tomanickova

User avatar
Member
Member
Webcoda - 1/20/2011 4:03:58 PM
   
RE:Unlink linked document
Thanks,

Not sure if content staging is applicable here. We are dealing with the a single website e.g. each satellite site is just an area in the content tree e.g.

- Root
- Page 1
- Page 2
- Regional Subsites
- Subsite 1
- Page 1
- Page 2
- Subsite 2
etc


Also I understand how you store linked documents ion the database, but this is not the reason for not being able to unlink them. Just create new document record, copy the content from linked document and link the tree node to this new document (I'm sure there "a little" more involved here :))
This would be a good and useful feature.

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 1/31/2011 1:56:24 PM
   
RE:Unlink linked document
Hi,

In the CMS_Tree table is a column NodeLinkedNodeID. If it is set to null - the document is not a linked document. Then you can create a document and change its DocumentNodeID column (CMS_Document table) to create a connection with the node id from CMS_Tree table.

But, unfortunately, I still do not understand why you cannot simply copy the document from the original one, in case the linked document will not be needed. It means remove the linked document and create a copy of the original one on its place.

Best regards,
Ivana Tomanickova

User avatar
Member
Member
Webcoda - 1/31/2011 8:46:24 PM
   
RE:Unlink linked document
Thanks Ivana,

Yes, deleting the linked document and copying the original document in its place works, but its just a matter of usabaility. To do this content administrator would have to do the following steps:
1. Delete linked page
2. Navigate to original page (you must note what the location of that page is prior to deleting page)
3. Copy the page and select the destanation (this is where the user was just a second ago)

It would be much easier for the user simply to click the "Unlink" button which would perfom all the necessary step behind the scene.

I (personaly) think this would be a nice feature.

Regards,
Oleg

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 2/1/2011 6:16:28 AM
   
RE:Unlink linked document
Hi,

It is clear now. Thank you for suggestion. I will create a requirement to add this functionality into one of next versions.

Best regards,
Ivana Tomanickova

User avatar
Member
Member
Webcoda - 2/1/2011 6:20:22 AM
   
RE:Unlink linked document
Thanks Ivana