I've ran into a little problem. I would like to set the selection of a category as a required property for a pagetype (it's used to categorize news subjects and needs to be set)... Therefor it should show up among the required properties once you create a page of the pagetype I have in mind. Anyone ideas on how I could solve this?
I've been trying to create a custom property rendering checkboxes (http://shahinalborz.se/2013/04/episerver-custom-property-multiple-category-checkbox-list-from-specific-sub-category/) list but I haven't yet gotten this to work with 7.5... Thankful for help!
<p>That sounds like a plan to me... Seems like this would be a rather common problem and I believe it has been solved before :) Could you maybe elaborate a bit about overriding the standard definition - Know of any good examples?</p>
<p>Hmm first I thought I could just override the property Category and add the required attribute but seems that didn't work.</p>
<p></p>
<p>Instead lets work with the descriptor. If you use <a href="http://joelabrahamsson.com/hiding-episervers-standard-category-property/">Joel's code </a>and just add </p>
<pre class="brush:html;auto-links:false;toolbar:false" contenteditable="false">metadata.IsRequired = true;</pre>
<p></p>
I've ran into a little problem. I would like to set the selection of a category as a required property for a pagetype (it's used to categorize news subjects and needs to be set)... Therefor it should show up among the required properties once you create a page of the pagetype I have in mind. Anyone ideas on how I could solve this?
I've been trying to create a custom property rendering checkboxes (http://shahinalborz.se/2013/04/episerver-custom-property-multiple-category-checkbox-list-from-specific-sub-category/) list but I haven't yet gotten this to work with 7.5... Thankful for help!