managermanager - OnPluginFormRender An error occurred while loading. Please see the event log for more information. Parse error: syntax error, unexpected '/' in /home/www/pm_cms/manager/includes/document.parser.class.inc.php(742) : eval()'d code on line 67
// ManagerManager plugin v0.2.4
// See readme.htm for licensing and installation instructions
if (!function_exists("make_changes")) {
function make_changes() {
// ------------------------ INSERT YOUR RULES HERE --------------------
// Replace these example rules with your own
// News editors role -- creating a variable makes it easier to manage if this changes in the future
$news = '3';
mm_hideFields('pagetitle,menutitle,link_attributes,template,menuindex,description,show_in_menu,which_editor,is_folder,is_richtext,log,searchable,cacheable,clear_cache', $news);
mm_renameTab('settings', 'Publication settings', $news);
mm_synch_fields('pagetitle,menutitle,longtitle', $news);
mm_renameField('longtitle','Headline', $news, '', 'This will be displayed at the top of each page');
mm_changeFieldHelp('parent', 'To move this story to a different folder: Click this icon to activate, then choose a new folder in the tree on the left.', '', $news_tpl);
// News story template
$news_tpl = '10';
mm_createTab('Categories','HrCats', '', $news_tpl, '', '600');
mm_moveFieldsToTab('tvnewsbigimage', 'general', '', $news_tpl);
mm_changeFieldHelp('longtitle', 'The story\'s headline', '', $news_tpl);
mm_changeFieldHelp('introtext', 'A short summary of the story', '', $news_tpl);
mm_hideFields('menuindex,show_in_menu', '', $news_tpl);
// For everyone
mm_default('pub_date');
mm_renameField('introtext','Summary');
mm_changeFieldHelp('alias', 'The URL that will be used to reach this story. Only numbers, letters and hyphens can be used');
/ /For everyone except administrators
mm_hideFields('link_attributes', '!1');
// ------------------------ END OF RULES --------------------
} // Don't remove this
} // Don't remove this
// The URL to the Jquery library. Leave blank and it will use the one available from jquery.com
// or if you want more control, specify your own local copy (e.g. http://www.yoursite.com/assets/js/jquery.js)
$js_url = '';
// You don't need to change anything else from here
// Get the main code
$asset_path = $modx->config['rb_base_dir'].'plugins/managermanager/mm.inc.php';
include($asset_path);/ /For everyone except administrators
// For everyone except administrators
// ManagerManager plugin v0.2.4
// See readme.htm for licensing and installation instructions
if (!function_exists("make_changes")) {
function make_changes() {
// ------------------------ INSERT YOUR RULES HERE --------------------
// Replace these example rules with your own
// News editors role -- creating a variable makes it easier to manage if this changes in the future
$news = '3';
mm_hideFields('pagetitle,menutitle,link_attributes,template,menuindex,description,show_in_menu,which_editor,is_folder,is_richtext,log,searchable,cacheable,clear_cache', $news);
mm_renameTab('settings', 'Publication settings', $news);
mm_synch_fields('pagetitle,menutitle,longtitle', $news);
mm_renameField('longtitle','Headline', $news, '', 'This will be displayed at the top of each page');
mm_changeFieldHelp('parent', 'To move this story to a different folder: Click this icon to activate, then choose a new folder in the tree on the left.', '', $news_tpl);
// News story template
$news_tpl = '10';
mm_createTab('Categories','HrCats', '', $news_tpl, '', '600');
mm_moveFieldsToTab('tvnewsbigimage', 'general', '', $news_tpl);
mm_changeFieldHelp('longtitle', 'The story\'s headline', '', $news_tpl);
mm_changeFieldHelp('introtext', 'A short summary of the story', '', $news_tpl);
mm_hideFields('menuindex,show_in_menu', '', $news_tpl);
// For everyone
mm_default('pub_date');
mm_renameField('introtext','Summary');
mm_changeFieldHelp('alias', 'The URL that will be used to reach this story. Only numbers, letters and hyphens can be used');
// For everyone except administrators
mm_hideFields('link_attributes', '!1');
// ------------------------ END OF RULES --------------------
} // Don't remove this
} // Don't remove this
// The URL to the Jquery library. Leave blank and it will use the one available from jquery.com
// or if you want more control, specify your own local copy (e.g. http://www.yoursite.com/assets/js/jquery.js)
$js_url = '';
// You don't need to change anything else from here
// Get the main code
$asset_path = $modx->config['rb_base_dir'].'plugins/managermanager/mm.inc.php';
include($asset_path);$empty_tab = ' <div class="tab-page" id="tab'.$id.'"> <h2 class="tab">'.$name.'</h2> <div class="tabIntro" id="tab-intro-'.$id.'">'.$intro.'</div> <table width="'.$width.'" border="0" cellspacing="0" cellpadding="0" id="table-'.$id.'"> </table> </div> ';
$empty_tab = '<div class="tab-page" id="tab'.$id.'"><h2 class="tab">'.$name.'</h2><div class="tabIntro" id="tab-intro-'.$id.'">'.$intro.'</div><table width="'.$width.'" border="0" cellspacing="0" cellpadding="0" id="table-'.$id.'"></table></div>';
mm_hideTab(’meta’, ’preview’); // Hide the meta and preview tabs for all users
mm_hideTab(’meta’, ’1’, ’3’); // Hide the meta tab for users with role "1" editing documents using template ID "3"
mm_hideTabs( ’meta , preview’ ); // Hide the meta and preview tabs for all users
mm_hideTabs( ’meta’ , ’1’ , ’3’ ); // Hide the meta tab for users with role "1" editing documents using template ID "3"
case 'searchable':
$output .= '$("input[@name=searchable]").val("'.(int)$new_value.'"); '."\n";
break;
<input name="searchablecheck" class="checkbox" checked="checked" onclick="changestate(document.mutate.searchable);" type="checkbox">
$output .= '$("input[@name=searchablecheck]").checked = false; '."\n";This discussion is closed to further replies. Keep calm and carry on.