21293 Posts in 5733 Topics by 2602 members
General Questions
SilverStripe Forums » General Questions » SS3 - adding another param to url $Params['AntherID']
General questions about getting started with SilverStripe that don't fit in any of the categories above.
Moderators: martimiz, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
|
Page:
1
|
Go to End | |
| Author | Topic: | 292 Views |
-
SS3 - adding another param to url $Params['AntherID']

25 August 2012 at 4:45pm
Hi,
I've got a new SS3 site, which has a set up this this
mysite.com/listings/show/New Zealand/Wellington/12332
eg: page / action / id / otherid / anotherid
I've tried numerous ways of adding another id to the end of the url, but it's all failing - either with page not found or other errors.
Does any one know a way of doing this?
Cheers
Jon
-
Re: SS3 - adding another param to url $Params['AntherID']

25 August 2012 at 5:09pm
Add:
public static $url_handlers = array(
'$Action//$ID/$OtherID/$AnotherID' => 'handleAction',
);
to your Controller subclass. -
Re: SS3 - adding another param to url $Params['AntherID']

25 August 2012 at 5:53pm
Thanks for that - I was trying similar things, but mustn't have been quite right.
work now -- many thanks!
| 292 Views | ||
|
Page:
1
|
Go to Top |

