Code: Select all
$route = new CmsRoute('/[nN]ews\/(?P<articleid>[0-9]+)\/(?P<returnid>[0-9]+)\/(?P<junk>.*?)\/d,(?P<detailtemplate>.*?)$/',
$this->GetName());
cms_route_manager::add_static($route);
Code: Select all
$route = new CmsRoute('/recipe\/(?P<recipeurl>.*?)\/(?P<returnid>[0-9]+)$/', $this->GetName());
cms_route_manager::add_static($route);
Code: Select all
/recipe/the-title-of-recipe/57
Code: Select all
$this->CreateLink($id, 'recipe_view', $returnid, '', array('recipe_id' => $recipe['id']), '', true, false, '', true, 'recipe/'.$recipe['url'].'/'.$returnid);
When I open this url it shows only this action content without template, but news module shows action content with template.
What is wrong?