Page Type Action for URL with hyphen

Permalink
So I have:

Page type 'mytype' with actions of reg1(), reg2(), map(). Page /reg1 is type mytype and calls the controller action reg1() fine. Same for /reg2, /map.

I also have page /other-page which is of type mytype. What do i call the action for the URL location 'other-path' ?

Or do i have to delete and recreate pages without hyphens in the path as just creating an extra location of otherpage without a hypen doesn't seem to call otherpage() in the mytype controller.

surefyre
 
hutman replied on at Permalink Best Answer Reply
hutman
Instead of doing it like that you could do something like

function view($path = '') {
//$path would be reg1 or other-path
}
surefyre replied on at Permalink Reply
surefyre
Ahhh yes of course. Good idea