There's a much easier way of doing this. Simply remove the children that you do not want to allow the user to create from being a valid child of the parent element. This will preserve the existing item and will not allow the user to create anymore children.
Only show DocTypes, which are allowed to Create more than once in Content Section
Hi all,
I want to hide all Document Types in Content Section (right Click - Create) which are already created.
My solution are:
Extend the Umbraco/Views/content/create.html as follows:
I dont like this solution.
Is there any other way (ApplicationEventHandler ?? )
There's a much easier way of doing this. Simply remove the children that you do not want to allow the user to create from being a valid child of the parent element. This will preserve the existing item and will not allow the user to create anymore children.
Wow Jason,
answered in one minute. :-)
Your solution is another way, but I need a coded solution, because I manage all our websites over an Dll.
is working on a reply...