About mm_hideTemplate, as i says early "I found, that when mm_HideTemplate() used, some template rows are doubled in Opera 9+ when document created or edited. So, be careful of using this function now."
About mm_hideTemplate, as i says early "I found, that when mm_HideTemplate() used, some template rows are doubled in Opera 9+ when document created or edited. So, be careful of using this function now."
No problem! (I’m trying to learn Russian at the moment)
Спасибо
I know MODx quite well, but here I met the wall. Is it possible to ask for some explanations and maybe some more examples. Please. 
// 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');
What does the 3 and 10 stand for, and how do I use this? (Now I’m gona put my head in the sand).
if you’ve installed MM correctly, there should be a new tab when you edit the MM plugin, which lists all your role and template IDs
Do you then refere to the ID-index in the database-fields? I just don’t find any ID-tags for the templates in MODx-manager.
This discussion is closed to further replies. Keep calm and carry on.