0

I have a variant that will display the item title, is there a way that i can trim the title from front end?

Is there any attributes or properties in the variant field to trim title from the variant?

1

Yes, you can. All you need to do is to use VariantTemplate and do something like that:

enter image description here

2
  • I will have to create custom method for trim or is it available out of the box in SXA?
    – NAli
    Aug 14 '18 at 12:01
  • I will work out of the box in the NVelocity template as I shown above. Aug 14 '18 at 12:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.