Wrap URL for News item in News Title - Front- & Back-End Development - Front- & Back-End Development - Progress Community
 Front- & Back-End Development

Wrap URL for News item in News Title

  • Wrap URL for News item in News Title
  • 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?
  • 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);



    Regards,
    Boyan Barnev
    Telerik
    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