URI for CMS view - what am I doing wrong

edited March 2014 in Modules
My view is in CMS named: projects
It loads a _block using {fuel_block('all_projects')}
all_projects block has all the projects logic to pull the data and displays all projects just fine but i need to catch URI projects/{category}
I have a file named _variables/projects.php with following code;
$pages['projects|projects/:any'] = array('view' => 'projects');
This results in 404. What is wrong?

Comments

  • edited 9:44AM
    Try adding something like this instead to your MY_fuel.php:
    $config['max_page_params'] = array('projects' => 1);
  • edited 9:44AM
    Yeap - beautiful... thanks.
Sign In or Register to comment.