Page 1 of 1

nVelocity

Posted: Wed Nov 21, 2007 7:09 am
by jmestep
Joe, are you using nVelocity much and if so, where and why if you don't mind explaining? I'm trying to decide which way to go with a few things- staying in C# all the time or not.

{
Thanks ;
}

Posted: Wed Nov 21, 2007 12:11 pm
by AbleMods
Haven't touched an inch of it.

Everthing I've done thus far has been modification to the AC7 user controls or my own user controls. All server-side.

I can't find a practical way to modify an HTML page that includes nVelocity code so that the formatting is readable. If I bring it into Visual Web Developer, I can use the formatter to make everything legible. But once I finish modifying the code and paste it back into AC7, somehow the paste function messes up the code and the page won't run.

I will probably have to get into NVelocity when I start tweaking the email messages. So sooner or later I must have a way to effectively edit the code in a programmer-readable fashion.

Honestly, without a data dictionary and function library reference to work with, learning nVelocity now would just frustrate me. I'm not a big fan of learning by pulling up existing pages and seeing how the AC7 designers did it. It's been hard enough to trace through the ASP.Net pages, but at least I have the debugger mode in Visual Web Designer to help me.

Posted: Wed Nov 21, 2007 3:22 pm
by jmestep
Thanks for the input. I've got VS 2005 and have been working in there and I hesitated to add another "language" if it wasn't necessary. I understand using it for the email templates, but I couldn't think how it would benefit me in the actual code changes.

Posted: Wed Nov 21, 2007 4:09 pm
by AbleMods
It appears it would be very useful when you want dynamic content generated on-the-fly rather than server-side. Like including a section on the page only if the product is digital, that sort of thing.

I'm with you...I've learned enough new languages for one year :wink:

Posted: Wed Nov 21, 2007 5:13 pm
by Logan Rhodehamel
I think the nvelocity scriptlets are more aimed at people who don't have the ability to edit the files directly. If you have the tools and aren't afraid of working with code, you do not need to work within the nVelocity language.