More in this section
Forums / General Discussions / Widget with relative route not displayed in page where the widget is located

Widget with relative route not displayed in page where the widget is located

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. Fadi
    Fadi avatar
    0 posts
    Registered:
    03 Dec 2014
    04 Apr 2017
    Link to this post

    I have an MVC widget with Index method that has RelativeRoute attribute, but when calling the route relative to its page, the content is rendered alone and ignored the template/page, which is against what is mentioned in this docs (http://docs.sitefinity.com/feather-use-the-relative-routes-api) 

     

    SiteHeader and SiteFooter placeholders are not rendered!!!

     

    Knowing that I am using pure MVC mode,  cshtml layout, and controller's method is: 

    [RelativeRoute("{param1}/{param2}/{param3}")]
            public ActionResult Index(string param1, string param2, string param3)

            {
              //
                return View("Default");
            }

1 posts, 0 answered