News module, 404 (fixed)... but now with a new question

edited February 2014 in Modules
I am following the pages/newsmodel tut.
Just copy pasted the code from the example and changed the table name.

Except from getting a 404 page when clicking "read full story" everything works perfectly.

I can read the list of news just fine. But if I add the slug to the URL I get the 404.

/news -works
/news/klas -404

http://docs.getfuelcms.com/general/pages-variables#news

Does anyone have an ideas of what I've done wrong?

Comments

  • edited February 2014
    I got the idea that i might be due to the fuel_mode.

    Tried to change it to auto, nothing seems to change. So now I am confused if it should be

    $config['fuel_mode'] = AUTO;
    $config['fuel_mode'] = "AUTO";
    $config['fuel_mode'] = "auto";
    or
    $config['fuel_mode'] = auto;

    I am still trying to fix this problem.

    Can someone tell me which way is the correct way?
  • edited 1:36PM
    I found the problem.

    in the MY_fuel config file. the max page params was set to 0.

    $config['max_page_params'] = 0;

    changed it to
    $config['max_page_params'] = 1;

    and now it works
  • edited 1:36PM
    You can also be specific for that configuration and put the following:
    config['max_page_params'] = array('news' => 1);
  • edited 1:36PM
    Thanks for the answer. I will have to try it out. :)

    Thanks for all the effort you put into answering posts.
Sign In or Register to comment.