More in this section

Forums / General Discussions / How to force DetailsViewHyperLink include culture in url?

How to force DetailsViewHyperLink include culture in url?

2 posts, 0 answered
  1. Saad
    Saad avatar
    98 posts
    Registered:
    10 Oct 2008
    06 Nov 2011
    Link to this post
    How can I make DetailsViewHyperLink to include culture (en/Home/<news item title>/<news item date>/..)?
  2. Lubomir Velkov
    Lubomir Velkov avatar
    688 posts
    Registered:
    03 Nov 2014
    09 Nov 2011
    Link to this post
    Hello Saad,

    Unfortunately this is not possible directly. You can inherit the DetailsViewHyperLink class and override its OnDataBinding() method. Inside it there is a call to DataResolver.Resolve() method that actually builds the URL, you could try and override it so it generates some other URL. Basically you can append "/en" or "/es" or whatever language you need in front of this URL after it is generated.

    Greetings,
    Lubomir Velkov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
2 posts, 0 answered