I'm new to U7 MVC and I want to access a URL parameter 'date' in my controller. The URL will have the form http://mydomain.com/image/2014-09-13 where 2014-09-13 is the 'date' parameter. The 'date' parameter will be used to check for existing images. The controller will be used on the 'image' node and this node will have no children.
I will use 7.1.6 and understand there will be some custom MVC routing involved. How will I need to set up the custom routing and how can I access the parameter in the controller?
Passing URL parameter - MVC
Hi
I'm new to U7 MVC and I want to access a URL parameter 'date' in my controller. The URL will have the form http://mydomain.com/image/2014-09-13 where 2014-09-13 is the 'date' parameter. The 'date' parameter will be used to check for existing images. The controller will be used on the 'image' node and this node will have no children.
I will use 7.1.6 and understand there will be some custom MVC routing involved. How will I need to set up the custom routing and how can I access the parameter in the controller?
:o)
Jon Ivar
Hi Jon,
did you finally found an answer to your question. If yes can you share it. I was looking for the same question.
Regards,
Simon-Pierre
Hi Simon-Pierre
Sadly, no. I know this is possible but I have not found any resources describing this.
:o)
Jon Ivar
Hi Jon and Simon-Pierre,
I think next blog article explains what you want if i correctly understand you both.
Custom MVC Routing
Hopefully this article will help you,
Regards,
Henk Jan Pluim
is working on a reply...