Try our conversational search powered by Generative AI!

Issue with links in an Item List when a Page is Moved to Trash

Vote:
 

Hi All,

We are facing an odd case in our application, specifically when we are using the type CollectionEditorDescriptor for an public virtual IList<...> property to add items in different places of the pages through our CMS.

Context:

 In fact, the Collection List is not the problem, the problem comes when we are moving a determine page which is linked to the Collection List to Trash...

For instance, we have a page allocated in our CMS tree:

within this page we are using several blocks, on of them is the one called IconList2.0, whithin this block we have a property of type CollectionEditorDescriptor which looks like as follows:

On Link property we are calling/linking a particular internal page which is called SS Video 2.0 test.

The issue:

When we try to Move to Trash that page EPiServer is not notifying that there links to that page specifically in The List item, for instance:

And this is what we are getting:

Which means that EPiServer is detecting only the CTA Block but not the link on the IconList Block to that same page.

Any ideas on this?

Thanks!

#292926
Dec 09, 2022 19:50
Vote:
 

What you are using here is generic propertylist, and according to the box at the top of the documentation this is unsupported functionality, and complex types are not supported.
https://docs.developers.optimizely.com/content-cloud/v11.0.0-content-cloud/docs/generic-propertylist

In your use case, you are experiencing that Optimizely do not handle the links like other links. They are not added to the database table tblContentSoftLink, this is the table that are used when you receive notification for inbound links upon deleting a page.

Two options:

  • Use block in block, instead of property list
  • Handle insertion of links in tblContentSoftLink yourself. There is a ContentSoftLinkRepository you could look into.
#292998
Dec 11, 2022 19:53
* 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.