November Happy Hour will be moved to Thursday December 5th.
November Happy Hour will be moved to Thursday December 5th.
Hi
It is the class ContentSoftLinkIndexer that is responsible for parsing out references from PropertyData instances and store them as SoftLinks (then at e.g. deletion a check is performed if anythings links to an item that is to be deleted and if so a warning is raised).
What you can do is to inherit from the class and override GetLinks method and register your inherited class in the IOC container. In your implementation of GetLinks you would call base.GetLinks to get the system handled properties and then you can add logic for your custom property.
Note:
I have reported a bug that it would be good if the class e.g. exposed an event to make it possible to handle custom properties without having to create a subclass.
Hi!
As we all know ContentReference-property will issue a warning if you are about to delete content that's referenced by the property. I want to have the same functionality on a custom property that contains list of ContentReferences, but I haven't found documentation on how to implement it. The main point is to prevent users from accidentally deleting referenced pages.
Do you have any advices on how to achieve this functionality