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
nVelocity Question
- jmestep
- AbleCommerce Angel
- Posts: 8164
- Joined: Sun Feb 29, 2004 8:04 pm
- Location: Dayton, OH
- Contact:
Re: nVelocity Question
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
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