cms_build_env['lvl'] == "cmspage"){ if(!$this->id){ $this->parameters['selectors'][] = array( 'id' => 0, 'name' => "cms_module_common_selector_page" ); } } return parent::get_form(); } public function check_condition(){ global $lvl,$pageid; $selector = $this->get_selected_selector(); $value = $selector->get_value(); //on regarde si on est sur la bonne page... if($lvl == "cmspage" && $pageid == $value){ return true; }else{ return false; } } }