I created one page with LinkItem collection property.How to disable the fileds in link item collection property,that means,
once i use the link means,second time shoul not to allow..how to restrict that?
I think I understand what you're after and it's not supported in any nice fashion.
I guess one option you have is to hook up to the saved or published events and modify the page type data. In there you would move the LinkItemCollection property to a Tab with other permissions or set the property to visibleineditmode = false. Downsite is that it would then disapper from the All properties view and you would need to not output editattributes for it in the template. It would also be hard to control on startup when models sync.
You also have the option of setting permissions to only allow Create but not Edit a page or maybe only allowing onpage editing for the group in question.
Hi Johan Kronberg,
I would like to disable the links after adding a link in linkItem collection property(It should allow single link instead of multiple link). I want to restrict multiple links.
Could you suggest me proceed further.
OK, from that input maybe you should just create a local block that contains Url, LinkText and Target properties instead of using a LinkItemCollection.
I think Johans suggestion is probably the easiest one. But maybe you could do a custom validation attribute to limit the numer of links to one.
Thanks for all your reply. I have done the local block with Title,target,link properties and also the validation..
Is there any way button to save only the Title with link.