More in this section

Forums / Developing with Sitefinity / MultiView Custom Widget and Virtual URL

MultiView Custom Widget and Virtual URL

2 posts, 0 answered
  1. Carlos Redondo
    Carlos Redondo avatar
    21 posts
    Registered:
    09 Jan 2009
    25 May 2012
    Link to this post
    Hi Team,
    I'm working on a MultiView Custom Widget and I'll like to change URL depending on selected view, so web user will have the sensation of being redirected to a new page, but its just a virtual path implementation.  At same time, I'll like to be able to display information depending on URL submitted by web user.  So, if my default view on widget displays information such as a list of addresses (Address Book Widget) and web user clicks over a row, then my widget view will change to display selected Address Book Detail information and URL will change to \Address-Book-Detail\123 where 123 denotes the Address Book ID. Then, I could copy/paste the URL into a new web browser section and page will render the Address Book Detail information as well.

    Have you some sample code how can I achieve this goal or any link you could point me for it? I don't want to reinvent the wheel and be sure I'm follow same sitefinity development pattern.  I saw this technique broadly used on Ecommerce Widgets.  I don't want to create separate widget for each view 'cause I'll end up with a very complex configuration.

    Thanks.


  2. Carlos Redondo
    Carlos Redondo avatar
    21 posts
    Registered:
    09 Jan 2009
    30 May 2012
    Link to this post
    Hi,
    It looks like we need to implement your own SitefinityRoute handler module to have friendly URLs in place.  

    I found this post and we are now working on it:
    http://www.sitefinity.com/devnet/forums/sitefinity/general-discussions/url-routing-in-sitefinity-5-0.aspx

    Thanks for all your help!

2 posts, 0 answered