Thanks, Antti, for confirming the behavior I'm seeing. In the meantime Richard created an issue. Strangely I don't see his reply here in the forum. In any case it's here: https://jira.magnolia-cms.com/browse/MGNLUI-3386
I hacked a workaround for now: I created a custom validator class which will display an error message if the selected node is not of a certain type (actually not among a list of allowed types). For this I however encountered already the next problem: The validator has no access to the field definition if I'm not mistaken. So when you define the targetWorkspace in the link field definition, you have to provide it in the validator again... Well, I agree that this might not be the ordinary every day use case, but an other more common use case for a validator would be that it should know what type of content is expected (String, Long, Double, Date). Therefore it would be nice if the validators somehow had a reference to the field definition. But ok. I'm changing subjects here ;-) -will -- Context is everything: http://forum.magnolia-cms.com/forum/thread.html?threadId=99068b85-a667-4f19-a879-17ff93a3fdbe ---------------------------------------------------------------- Alternatively, use our forums: http://forum.magnolia-cms.com/ To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
