Design's Show if problem


#1

The below design code is used to display staff or customer homepage content depending on a visitors IP.

 

This works as expected on the homepage, but the staff_content area is printing the same (home page) content for children pages, Am I missing something here or another setting is askew perhaps?

 

Any wisdom greatly appreciated.

4:16:1

<!-- Staff Content -->
<MySource_area id_name="staff_content" design_area="body" print="no" />   

<!-- Customer Content -->
<mysource_area id_name=“customer_nest” design_area=“nest_content” print=“no”>
<Mysource_set name=“type_codes” value=“page” />
</mysource_area>

<MySource_AREA id_name=“visitor_detect” design_area=“show_if”>
<MySource_SET name=“condition” value=“user_ip”/>

<MySource_THEN>
<Mysource_print id_name=“staff_content” />
</MySource_THEN>

<MySource_ELSE>
<Mysource_print id_name=“customer_nest” />
</MySource_ELSE>

</MySource_AREA>


#2

I had assumed that changing from a previously nested design area to a body area for my Staff Content, would've cleared the customised design are for the nest_content...Not so.

 

Problem solved.