Within the CMS we have a lot of document types within each multiple fields where you can link to another document. What we wish to do is have it that based around documents within a certain path throw an error when the documents under those path link to a document outside of that path or when documents outside that path link to documents within that path.
I know it is possible to to do this with a validator but the only way I know to make this work would involve going through every single document type and adding the validator to every single field that could possibly link to a seperate document.
Is there a way either via validator, event or other that would simplify this process? or can we just block documents to link to under a certain path?