Everything with ManagerManager is working fine except for the published by default when saved,
<?php
// MM rules can go in here, instead of a chunk
// If you copy them to a chunk, don't include the opening and closing PHP tags
// ------------------------ INSERT YOUR RULES HERE --------------------
// These are example rules -- replace them with your own
// PHP *is* allowed
mm_widget_showimagetvs(); // Always give a preview of Image TVs
// Role Variables -- creating a variable makes it easier to manage if this changes in the future
$admin_role = '2';
$editor_role = '3';
$corrector_role = '4';
// Sections
mm_hideSections('access,content', '2,3,4'); // Hide the Access and Content sections for all users [mm_hideSections($sections, $roles, $templates)]
mm_renameSection('docsettings', 'Datos Generales', '2,3,4', '5,6,7'); // Rename the document settings section for users with role "2,3,4" and template "5"
mm_renameSection('tvs', 'Datos del Video', '2,3,4', '6'); // Rename TV section for role "2,3,4" and template "6" [mm_renameSection($section, $newlabel, $roles, $templates)]
mm_renameSection('tvs', 'Datos del Avance', '2,3,4', '7'); // Rename TV section for role "2,3,4" and templete "7"
// Tabs
mm_hideTabs('settings,meta,preview', '2,3,4'); // Hide the meta and preview tabs for all users [mm_hideTabs($tabs, $roles, $templates)]
mm_renameTab('general', 'Entrada de Datos'); // Rename the general tab for users with role "2" [mm_renameTab($tab, $newlabel, $roles, $templates)]
// Fields
mm_hideFields('tvheader,tvnavigation,tvsidebar,tvdittoCall,tvfooter,tvshowgrid', '2,3,4'); // mm_hideFields($fields, $roles, $templates)
mm_hideFields('longtitle,alias,link_attributes,introtext,template,menutitle,menuindex,show_in_menu,parent', '2,3,4');
mm_synch_fields('pagetitle,alias,longtitle', '2,3,4');
// Defaults - For everyone
// mm_default('pub_date'); // mm_default($field, $value, $roles, $templates, $eval)
mm_default('published', '1', '2,3,4', '6,7');
mm_default('cacheable', '0', '2,3,4', '6,7');
mm_default('show_in_menu', '0', '2,3,4', '6,7');
mm_default('is_folder', '0', '2,3,4', '6,7');
// ------------------------ END OF RULES --------------------
?>
interfering, but it does not work without it also.