More in this section
Forums / Developing with Sitefinity / Custom url control

Custom url control

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
1 posts, 0 answered
  1. Setxi
    Setxi avatar
    7 posts
    16 Mar 2015
    16 Jun 2015
    Link to this post
    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!
1 posts, 0 answered