Skip to main content

Questions tagged [nvelocity]

NVelocity is a .Net-based template engine. It permits developers to use the simple yet powerful template language to reference objects defined in .Net code. Any question around this topic may use this tag.

Filter by
Sorted by
Tagged with
0 votes
1 answer
150 views

VelocityContext in Sitecore 10.1

When migrating from Sitecore 8.2 to 10.1. I have encountered the error in VelocityContext This is the code. public class AddTemplateRenderers : IGetTemplateRenderersPipelineProcessor { public void ...
Owais Ahmed's user avatar
1 vote
1 answer
348 views

How to check if a checkbox is checked in a check list field in the rendering variant NVelocity template

I have a checklist with value(a,b,c,d) in the items. In the rendering variant template how can I check If 'a' is checked? I am using Sitecore 9.2
Barada Behura's user avatar
0 votes
1 answer
154 views

How to write a for each inside template of a rendering variant

Inside a rendering variant I added a template. Inside that I want a for each loop. Can anyone please suggest if it's feasible. Sitecore 9.2
Barada behura's user avatar
1 vote
1 answer
211 views

Unable to get Sitecore.NVelocity from Nuget on Build Server

Solution builds just fine on local environment but the build server fails to locate Sitecore.NVelocity. Thoughts on why it is not found? The nuget.config file has an entry below: <add key="...
Colema18's user avatar
  • 321
3 votes
1 answer
720 views

Count of selected items in a MultiList

I need to view the number of selected items in a MultiList field using out of the box SXA (1.7) components(i.e. no custom coding). I tried doing this with a rendering variant NVelocity template using ...
Menah Alasmy's user avatar
3 votes
2 answers
2k views

Using #if in SXA variant NVelocity template

I created a variant in SXA with a NVelocit template. In this variant I am displaying some text in an a tag: <a href="$item.Fields.Link" target="_blank">Test</a> This works fine, but when ...
Gatogordo's user avatar
  • 20.3k