array( 'allowMain' => true, 'format' => 'path', 'defaultRoute' => 'index/category', // false - disable all parameters passed to assemble method by default 'allowVars' => array('cat', 'frm'), // custom assemble/parse URL regex template 'varTemplates' => array('galleryCat' => '[\w\pL\s\-+.,]+'), ), // rule set array 'rules' => array( '/' => 'index/category', // allow only mapped vars - cat and frm parameters to be passed '' => array('index/list', 'mapVars' => array('media_cat_sef' => 'cat', 'from' => 'frm')), ) ); } /** * Admin callback * Language file not loaded as all language data is inside the lan_eurl.php (loaded by default on administration URL page) */ public function admin() { // static may be used for performance - XXX LANS static $admin = array( 'labels' => array( 'name' => LAN_PLUGIN_GALLERY_TITLE, // Module name 'label' => LAN_PLUGIN_GALLERY_SEF_01, // Current profile name 'description' => LAN_PLUGIN_GALLERY_SEF_02, 'examples' => array('{SITEURL}gallery/my-gallery-title'), // ), 'form' => array(), // Under construction - additional configuration options 'callbacks' => array(), // Under construction - could be used for e.g. URL generator functionallity ); return $admin; } }