nVelocity Question

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
trozzi
Lieutenant Commander (LCDR)
Lieutenant Commander (LCDR)
Posts: 104
Joined: Wed Oct 05, 2005 4:44 pm
Contact:

nVelocity Question

Post by trozzi » Thu Jul 31, 2008 1:54 pm

I want to conditionally use ConLib user controls in a scriptlet based on categoryId

Can I retrieve the category Id via nVelocity scriptlet language?

Thanks
Thomas

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: nVelocity Question

Post by jmestep » Thu Jul 31, 2008 2:09 pm

Yes. I have done that in Shopping Bar scriplet to show news feeds based on different search terms, using Mazhar's news feed conlib:

Code: Select all

#if ($Category.CategoryId == 7)
[[Conlib:Custom/RssReader FeedUrl=" http://news.search.yahoo.com/news/rss?p=keyword1+keyword2 &ei=UTF-8&fl=0&x=wrt#" Name="" MaximumResults="7" ShowUpdateDate="true" ShowDescription="true" ShowItemImage="false" ShowPubDate="true" ShowChannelTitle="false" ShowChannelDescription="false" ShowChannelSeperator="true" ShowChannelImage="false"]]
#end
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

Post Reply