/**
 * mm_rules
 *
 * Default ManagerManager rules.
 *
 * @category	chunk
 * @version 	1.0.5
 * @license 	http://www.gnu.org/copyleft/gpl.html GNU Public License (GPL)
 * @internal 	@modx_category Js
 * @internal    @overwrite false
 * @internal    @installset base, sample
 */

// more example rules are in assets/plugins/managermanager/example_mm_rules.inc.php
// example of how PHP is allowed - check that a TV named documentTags exists before creating rule

if ($modx->db->getValue($modx->db->select('count(id)', $modx->getFullTableName('site_tmplvars'), "name='documentTags'"))) {
	mm_widget_tags('documentTags', ' '); // Give blog tag editing capabilities to the 'documentTags (3)' TV
}
mm_widget_showimagetvs(); // Always give a preview of Image TVs

mm_createTab('SEO', 'seo', '', '', '', '');
mm_moveFieldsToTab('meta_title,meta_keywords,meta_description,seo_override,meta_noindex,sitemap_changefreq,sitemap_priority,sitemap_exclude', 'seo', '', '');
mm_widget_tags('meta_keywords',','); // Give blog tag editing capabilities to the 'documentTags (3)' TV


//mm_createTab('Images', 'photos', '', '', '', '850');
//mm_moveFieldsToTab('images,photos', 'photos', '', '');

//mm_hideFields('longtitle,description,link_attributes,menutitle,content', '', '6,7');

//mm_hideTemplates('0,5,8,9,11,12', '2,3');

//mm_hideTabs('settings, access', '2');
