Dynamic Propertries and Inheritance issues

Vote:
 

Hi

I am currently having some issues with dynamic properties and there inheritance. Say for example I have a dynamic property named 'ShowFeature' which is of type boolean ('selected/not selected').

I create a page called 'Parent' and then a child of 'Parent' named 'Child'.

I then set the 'ShowFeature' boolean value for 'Parent' to true, this value is then inherited in the child page.

I then want to somehow not show the feature on the 'Child' page, so I want to set the boolean value of the dynamic property to false. 

When trying to edit the dynamic property on the child page it's value is inherited so I cannot turn it off, I can just turn it on.  I am assuming this is possibly because the boolean property types value is null if it hasn't been checked.

Is there a known workaround to this, or do I have to implement my own boolean property?

Kind Regards

Lee

#44016
Sep 29, 2010 12:37
Vote:
 

You'll need to create a custom property type which is Yes/No/Null (stored as PropertyNumber for example, values 2, 1, 0). For the default boolean property type, the false value is stored as null, which the dynamic properties interpret as not set.

#44017
Sep 29, 2010 12:54
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.