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
);