Page 1 of 1

CGContentUtils: Checkbox not applying unchecked status?

Posted: Wed Nov 02, 2011 7:54 pm
by snarfu
Hello there,

this is a question regarding CGContentUtils. I added a checkbox content block to my page template which worked fine - a new checkbox field is added to the backend page. Checking the checkbox and hitting "Apply" updates the field and the content triggered by this field is shown. When I uncheck the checkbox and hit apply nothing really happens. The content is still show and when I reload the backend page the checkbox is once again checked.

I tried to submit the page and after two tries of unchecking the checkbox and hitting submit the checkbox stayed unchecked and the content did not show anylonger.

I am not sure if I am doing something wrong here or if the the checkbox does not support the Apply function.

The modules have the following versions:
JQueryTools: 1.0.10
CGExtensions: 1.27.1
CGContentUtils: 1.2.1

The code to add the content field to my page inside the page template:

Code: Select all

{content_module module='CGContentUtils' block='user_box' name='user_box' label='Show User Box?'}
And the actuall code to check the field state:

Code: Select all

{if $content_obj->HasProperty("user_box") && $content_obj->GetPropertyValue("user_box") ==1}
            {global_content name='cnet_userbox'}
{/if}
I hope I gave enough information, if anything is missing I will provide it asap.

Greetings from snarfu