API for dynamic links in scriptlets

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
RKS_213
Lieutenant (LT)
Lieutenant (LT)
Posts: 69
Joined: Mon Dec 26, 2011 2:48 pm

API for dynamic links in scriptlets

Post by RKS_213 » Mon Jan 23, 2012 1:03 pm

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.

User avatar
david-ebt
Captain (CAPT)
Captain (CAPT)
Posts: 253
Joined: Fri Dec 31, 2010 10:12 am

Re: API for dynamic links in scriptlets

Post by david-ebt » Mon Jan 23, 2012 8:17 pm

Something like this should give you the link to the category page:

<h1><a href="$Category.NavigateUrl">$Category.Name</a></h1>
David
http://www.ecombuildertoday.com
Enhanced Reporting for AbleCommerce
Image

RKS_213
Lieutenant (LT)
Lieutenant (LT)
Posts: 69
Joined: Mon Dec 26, 2011 2:48 pm

Re: API for dynamic links in scriptlets

Post by RKS_213 » Tue Jan 24, 2012 9:58 am

Yeah I tried a couple of things but that did the trick. Thanks, David.

Post Reply