Simple Module URL

edited May 2016 in Modules
Hi,

I created a simple module with the name "articles", but I want the articles to available through a different url.
In the current state i have to browse to: http://localhost/fuel/articles/testartikel
but I want it to be available via http://localhost/fuel/artikel/testartikel

I tried to modify the MY_fuel_modules.php file by adding this to the module config:


$config['modules']['articles'] = array(
'preview_path' => 'artikel/{slug}',
'module_uri' => 'artikel',
'display_field' => 'title',
'sanitize_input' => array('template','php'),
'pages' => array(
'base_uri' => 'artikel',
),
);

This doens't work. Does anyone know how to accomplish the different URL? Maybe it is also possible to have multiple URLs for a simple module.

thanks,
Christian
Sign In or Register to comment.