I've been playing around with making modules and it's working all quite well.
I've created a module which displays some items.
(url: http://www2.flexforfinance.nl/vacatures/).
Those items are clickable and when clicking you get a page with details
(url http://www2.flexforfinance.nl/vacatures/1/ for example).
To display the firstpage i've just added a page to the menu and the following code on that page:
{cms_module module='Vacature'}
And for the detailpage i've added this route:
$this->RegisterRoute('/vacatures\/(?P[0-9]+)/', array('action'=>'default'));
Now the problem is that the detail page isn't the same page as the firstpage.
If I add some text above the items, it only shows at the first page.
And the title of page changes to 'Home' if I go to the detailed page.
This ain't right; I want it to stay on the same page.
Can anybody please tell me what i'm doing wrong?
Thnx.
Module Titlebar/Route problems
Re: Module Titlebar/Route problems
I've fixed the bug.
I didn't notice that I had to add the returnid explicit to my urls.
Is there a way to use nice urls without using the return id?
Cause if I already have a page like www.mysite.com/certainpage/ it should be logical that www.mysite.com/certainpage/1/ directs to this page, right? Or is the returnid necessary because the name in the url isn't unique or can be nested?
I didn't notice that I had to add the returnid explicit to my urls.
Is there a way to use nice urls without using the return id?
Cause if I already have a page like www.mysite.com/certainpage/ it should be logical that www.mysite.com/certainpage/1/ directs to this page, right? Or is the returnid necessary because the name in the url isn't unique or can be nested?
Re: Module Titlebar/Route problems
Hello
I am also looking to create module that using pretty urls.
Did you find a solution to make the url without returnid?
I have another question.
Should i modify htaccess file for the module urls or registerroute do this job accordingly?
Best regards,
Svilen Sabev
I am also looking to create module that using pretty urls.
Did you find a solution to make the url without returnid?
I have another question.
Should i modify htaccess file for the module urls or registerroute do this job accordingly?
Best regards,
Svilen Sabev
Re: Module Titlebar/Route problems
Yes i read that twice before i added this message here.
Sorry for the off topic.
I wasn't sure enough and I didn't test it yet.
Best Regards
Sorry for the off topic.
I wasn't sure enough and I didn't test it yet.
Best Regards