Module Titlebar/Route problems
Posted: Wed Nov 15, 2006 4:37 pm
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.
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.