$projEditor= '2';
mm_hideFields('menutitle,link_attributes,description,show_in_menu,which_editor,is_folder,is_richtext,log,cacheable,clear_cache', $projEditor);
mm_renameTab('settings', 'Publication settings', $projEditor);
OK, found the problem - try replacing this bit of code (around line 375 of mm_functions.inc.php):
default: // Lets check the fields exist, or is a TV, so we're not writing JS for elements that don't exist if (isset($mm_fields[$field]) || substr($field, 0, 2) == 'tv') { $output .= '$("input[@name='.$field.']").parents("tr").hide(); '; } else { break; } break;
with the following:
default: // Is it a TV? if (substr($field, 0, 2) == 'tv') { $output .= '$("#'.$field.'").parents("tr").hide(); '; } else if (isset($mm_fields[$field])) { // Check the fields exist, so we're not writing JS for elements that don't exist $output .= '$("'.$mm_fields[$field]['fieldtype'].'[@name='.$mm_fields[$field]['fieldname'].']").parents("tr").hide(); '; } else { break; } break;
No, at the moment it only works for documents, but could be extended in the future. Can you give an example of how you would like to use it within web user management?
Is managermanager also usable to disable serten webgroups select boxes in webuser management? (create / edit webusers)
No, this did not work.
Here’s the code in my installation:
Quote from: Dimmy at Jun 12, 2008, 12:50 PMNo, at the moment it only works for documents, but could be extended in the future. Can you give an example of how you would like to use it within web user management?
Is managermanager also usable to disable serten webgroups select boxes in webuser management? (create / edit webusers)
@ncrossland
Function setVariableModified was removed in 0.9.6.1, so some functionality in widgets showimagetvs, colors not working in last MODx.
Great implemented, nice readme. Waiting for widget coder documentation.

Quote from: Metaller at May 30, 2008, 06:29 AMIs this what you want to do?
Or may be you mean that we can hide news template, and user cant to set news template to any document. But child documents of news folder will be inherit parent "news" template.
This discussion is closed to further replies. Keep calm and carry on.