problem with menu and clean urls

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
piotrekkr
Forum Members
Forum Members
Posts: 38
Joined: Mon Mar 05, 2007 5:30 pm

problem with menu and clean urls

Post by piotrekkr »

Hi everyone. I'm writing module and I'm using clean urls:

Code: Select all

echo $this->CreateLink($id, 'default', $returnid, 'Logowanie', array(), '', false, false, '', false, 'gabloty/gablotki/login_form');

Code: Select all

function SetParameters(){
$this->RegisterRoute('/gabloty\/gablotki\/(?P<action>login_form)$/', array('action'=>'login_form'));
}
If I enter sitename.com/gabloty/gablotki/ menu shows correctly on what site I am now but if I click on link that is generated by CreateLink function (http://sitename.com/gabloty/gablotki/login_form/) it correctly shows login form but menu is showing that I'm in page Home not in gabloty->gablotki (I have page gabloty and subpage gablotki so it should be good)

Maby I don't understand it correctly. I looked into Album module but everything seems to be like in my module. I don't understend why page hierarchy isn't preserved. Maby there is some way to do it but i can't find it :(

Any ideas what I'm doing wrong? Thanks for help and sorry for my poor english.
Last edited by piotrekkr on Mon Apr 09, 2007 1:49 pm, edited 1 time in total.
Post Reply

Return to “Modules/Add-Ons”