Different Editor Pages for Different Users

37 posts by 12 authors in: Forums > CMS Builder
Last Post: September 22, 2011   (RSS)

By ross - July 25, 2011

Hi Jerry

It should be possible to gray out fields instead of just hide them. Send me a message through consulting@interactivetools.com and we can start putting a quote together for all of this.

Thanks!
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Consulting
consulting@interactivetools.com

Hire me! Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/

Re: [Chris] Different Editor Pages for Different Users

Hi Guys,

This seems to work fine with a single show/hide function, but can I can 2 sho/hide functions? ie.

// UPDATE THESE VALUES

// For each section and list field, copy this block
// Fields will start hidden if they appear in any "fields to show" list
$GLOBALS['SHOWHIDE_DEPENDANT_FIELDS_CONFIG']['home_items']['display'] = array(
// list option => fields to show
'' => array(), // show these fields when the topmost '<select>' option is selected
'Text' => array('content'),
'Video' => array('embed_video'),
'Image' => array('image'), // show these fields when a value not listed above is selected
);

// For each section and list field, copy this block
// Fields will start hidden if they appear in any "fields to show" list
$GLOBALS['SHOWHIDE_DEPENDANT_FIELDS_CONFIG']['home_items']['link_type'] = array(
// list option => fields to show
'' => array(), // show these fields when the topmost '<select>' option is selected
'None' => array(),
'More' => array('link_text'),
'External' => array('link_text', 'link'), // show these fields when a value not listed above is selected
'Image' => array('link_text'), // show these fields when a value not listed above is selected
);


// DON'T UPDATE ANYTHING BELOW THIS LINE

Cheers,

Tim (toledoh.com.au)

Re: [Toledoh] Different Editor Pages for Different Users

By Jason - September 19, 2011

Hi Tim,

You can copy that block of code for each section & list field that you want the plugin to affect.

Give it a try and let us know if you run into any problems.

Hope this helps
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Jason] Different Editor Pages for Different Users

That is what I have done, as posted above. Each block by itself works fine, but both together, neither work...
Cheers,

Tim (toledoh.com.au)

Re: [Toledoh] Different Editor Pages for Different Users

By Jason - September 22, 2011

Hi Tim,

I tracked this problem down to a bug in the plugin that would only use the last rule if there were more than 1 rule for a given section. I fixed this on your install and the problem seems to be resolved now. We've also fixed the plugin and will be re-releasing it soon.

Hope this helps
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Jason] Different Editor Pages for Different Users

Brilliant - Thanks!
Cheers,

Tim (toledoh.com.au)