Custom url control

Posted by Community Admin on 04-Aug-2018 15:22

Custom url control

All Replies

Posted by Community Admin on 16-Jun-2015 00:00

Hi,
I open this post for solve a issue in our sitefinity development. We are investigating about the urls and pages, and we don't find the right solution. To put into context the discussion, we are working with mvc widgets, and hybrid MVC mode.
We want to use the url "/news" for access to our news home. This page is created over a template of us, where a list of news is created . For solve it, we create a page called "news". 
On the other hand we need "/news/url", where url is the news url. Our problem is that for have access to a item by his url, SF searches a page with a news widget within, but our pages have not this widget, since the page is created dynamically by javascript, and the content is be searched in sitefinity through ajax calls. We had got it creating a invisible news widget, but this don't serve for our other cases.
Another case is that the url is from a news that doesn't allocated in SF database. In this case, if we go to "/news/url", we will need a controller which loads the news from the external database, and load the page "News" with the selected news.
A last case, is that the "url" is another text that will be used in the page, as example, the initial tag which be filtered our list ("/news/uk" for our news list, filtering for the "uk" value).
We tried to do it through mvc routing, creating custom content locations... But we cannot find the way to intercept our calls for load the page that we want with the model and parameters that we want.

Thanks in advance!

This thread is closed