ASPX templates
Version 2.x > ASPX templates > Mandatory Regions View modes: 
User avatar
Member
Member
nicola - 10/16/2007 1:31:48 AM
   
Mandatory Regions
What is the best way to make regions on a page mandatory (i.e. they must contain content)?

User avatar
Member
Member
kentico_vitaja - 10/23/2007 1:42:20 PM
   
RE:Mandatory Regions
Hi,

Please go to /CMSWebParts/Text/editabletext.ascx.cs, find IsValid() function and update this function as follows: after if (fckValue != null) section add else section that will set mIsValid property to false. You can update TextArea and TextBox in the same way.

Best Regards,
Vita Janecek

User avatar
Member
Member
Nik - 11/7/2007 1:33:07 AM
   
RE:Mandatory Regions
This doesn't seem to work for aspx templates. What is the best way if using aspx templates?

User avatar
Member
Member
kentico_vitaja - 11/8/2007 2:00:34 PM
   
RE:Mandatory Regions
Hi,

Unfortunately this seems to be a bug in current version - there is minlength property which should be restricting minimal length for editable region. However it is not working as expected. We are sorry for this inconvenience and we will fix this issue in next version of Kentico CMS.

Best regards,
Vita Janecek