Picture of Jana Kemmer
Modifying Components
by Jana Kemmer - Wednesday, 8 February 2017, 2:24 PM
 

Hello fellow Adapters, 

I'm looking for a best-practice for modifying components. Is there a way to overwrite templates/js files from outside of the component itself? My goal is to keep all components as they are and then modify templating files etc as I need them. That way I could still update them etc but keep my modifications seperate. 

Or do you guys change the component itself/ duplicate the component and keep them as a custom-component?

 

Thx in advance

 

Picture of Matt Leathes
Re: Modifying Components
by Matt Leathes - Wednesday, 8 February 2017, 3:09 PM
 

Hi Jana

If you just want to modify the handlebars templates and/or LESS files then just put a copy in the equivalent folders in your theme and modify those copies, they will take precedence over the ones in the component's folder.

Picture of Jana Kemmer
Re: Modifying Components
by Jana Kemmer - Wednesday, 8 February 2017, 4:08 PM
 

thank you, that's exactly what I was looking for!