In a scriptlet I have
<h1>$Category.Name</h1>
This, of course, dynamically renders the Category Name in relation to where I am on the site. However, I would like to dynamically link to the category as well like:
<h1><a href="~base.path/$Category.ID.URL">$Category.Name</a></h1>
Or whatever the correct way to render a link in this case would be. Thanks.
API for dynamic links in scriptlets
Re: API for dynamic links in scriptlets
Something like this should give you the link to the category page:
<h1><a href="$Category.NavigateUrl">$Category.Name</a></h1>
<h1><a href="$Category.NavigateUrl">$Category.Name</a></h1>
Re: API for dynamic links in scriptlets
Yeah I tried a couple of things but that did the trick. Thanks, David.