Hello all,
Am confusing myself with this one now...
I have a template 'globals_sa.php', which has a radio button with two values.
I access this value in another template 'index.php' to allow user sorting of nested_pages or not.
When i access the second template the value returned by get_field from globals_sa.php is always the setting as it was when I last accessed index.php as super-admin NOT the current value as saved in 'globals_sa.php'.
Is there anyway to get the value of g_allow_edit to be current?
As always, any help greatly appreciated.
Am confusing myself with this one now...
I have a template 'globals_sa.php', which has a radio button with two values.
- Code: Select all
<!-- MISC settings -->
<cms:set g_order = '100000' 'global' />
<cms:editable order="<cms:show g_order />" type='group' name='grp_misc' collapsed='1' label='Misc. settings' >
<!-- Allow menu sorting -->
<cms:editable order= '100' type="radio" name="global_allow_menu_sort" label="Allow menu sorting" desc="select to enable USER menu sorting" opt_values='No=0 | Yes=1' />
</cms:editable>
I access this value in another template 'index.php' to allow user sorting of nested_pages or not.
- Code: Select all
<cms:set g_allow_edit = '0' scope='global'/>
<cms:set g_allow_edit = "<cms:get_field 'global_allow_menu_sort' masterpage='globals_sa.php' />" scope='global'/>
- Code: Select all
<!-- LIST VIEW -->
<cms:if g_allow_edit ne '1' >
<cms:config_list_view>
<cms:field 'k_selector_checkbox'/>
<cms:field 'k_page_title' />
<cms:field 'k_comments_count' />
<cms:field 'k_actions' />
</cms:config_list_view>
</cms:if>
When i access the second template the value returned by get_field from globals_sa.php is always the setting as it was when I last accessed index.php as super-admin NOT the current value as saved in 'globals_sa.php'.
Is there anyway to get the value of g_allow_edit to be current?
As always, any help greatly appreciated.