Wrap URL for News item in News Title

Posted by Community Admin on 05-Aug-2018 02:35

Wrap URL for News item in News Title

All Replies

Posted by Community Admin on 06-Feb-2014 00:00

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?

Posted by Community Admin on 10-Feb-2014 00:00

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

This thread is closed