More in this section
Forums / Designing & Styling / Wrap URL for News item in News Title

Wrap URL for News item in News Title

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.
2 posts, 0 answered
  1. Sam
    Sam avatar
    1 posts
    10 Jan 2014
    06 Feb 2014
    Link to this post
    I'm trying to get the news title to act as a hyperlink in a news template. I've tried wrapping the Url tag inside the News Title tag, but then I get a parser error. Any ideas on how I can do this?
  2. Boyan Barnev
    Boyan Barnev avatar
    1429 posts
    02 Jan 2018
    10 Feb 2014
    Link to this post
    Hello Sam,

    Thank you for using our services.

    Can you elaborate a little bit further on the exact use case scenario you have in mind, so we can give you a more detailed response?

    The default News items list  template uses the news item title to form the hyperlink to the items details page using our DetailsViewHyperLink control.

    You can use similar logic to obtain the item's URL using our DataResolver class:
    url = DataResolver.Resolve(dataItem, "URL","", null);

    Boyan Barnev
    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 Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
2 posts, 0 answered