public class AccommodationController : UmbracoController
{
public ActionResult Index(string accommodationId)
{
//do some funky stuff
return stuff;
}
}
However, If I try to navigate to "mysite.com/accommodation/12345" I cannot even hit my controller.
I have never done this before, so please any help would really appreciated.
Umbraco URL REwriting
Good day,
I know this issue has been discussed before, but none of these solutions work for me. Can some please tell me if I'm doing anything wrong.
I have data from a custom source and I need to get data from the database by the id. I have setup my rewrites like below:
And then I have my Controller like:
However, If I try to navigate to "mysite.com/accommodation/12345" I cannot even hit my controller. I have never done this before, so please any help would really appreciated.
Thanks, Luyolo
Anyone had to do something like this before ?
Hi Luyolo Mgodi,
I think you can do it using Surface controller
read query string add pass to the controller via a partial view.
more about Surface controllers
is working on a reply...