I'm trying to create a search form in Umbraco 6.2.0 and would like to be about to have a URL such as domain.com/search/user/querytermhere for the search results page.
I can't find a way to do this using Surface Controllers and don't seem to be able to find a way to register custom routes within Umbraco. Is there a way to do this?
In short, I'd like to have a form displayed on a page which then submits/redirects this data to another page to display the results to the user. What is the best way to be going about this?
I'm trying to create a search page at a URL such as domain.com/search.
For an example, lets say I wanted to search for eggs. I'd like results to be displayed on a page such as domain.com/search/all/eggs however I can't seem to find a way to do this using Umbraco.
Submitting a form to a different node
I'm trying to create a search form in Umbraco 6.2.0 and would like to be about to have a URL such as domain.com/search/user/querytermhere for the search results page.
I can't find a way to do this using Surface Controllers and don't seem to be able to find a way to register custom routes within Umbraco. Is there a way to do this?
In short, I'd like to have a form displayed on a page which then submits/redirects this data to another page to display the results to the user. What is the best way to be going about this?
Hi, what are you trying to do here?
Charlie :)
Hi Charlie
I'm trying to create a search page at a URL such as domain.com/search.
For an example, lets say I wanted to search for eggs. I'd like results to be displayed on a page such as domain.com/search/all/eggs however I can't seem to find a way to do this using Umbraco.
Thanks
James
You could pass it as a get variable and then just check for it on the Search page from the query string? "/search?term=Fish"
is working on a reply...