cancel
Showing results for 
Search instead for 
Did you mean: 

Share extension markup

rasm
Champ in-the-making
Champ in-the-making
Extenting 4.2.x share your can extend the FTL templates by region or markup.

I have done this a couple of times, using regions and markup defined in files.

In a case i wanted to add a JS file to the loading of actions-common.get.html.ftl, but the file does not have a markup and is reused in many places, so not really mapped to just one region.

Therefore my question is, is there a default markup for every FTL file, like id="default", which you could hook into (or another approach)?
2 REPLIES 2

afaust
Legendary Innovator
Legendary Innovator
Hello,

no, there isn't a default markup to hook into. If your only requirement is to add a nother JS file to a webscript you don't need to customize the FTL - simply declare it as a JS dependency in your Surf extension module customization.

Regards
Axel

rasm
Champ in-the-making
Champ in-the-making
thanks, for the answer. That would include it in all pages and I need to do some monkey patching, change the JS loaded by a specific FTL … would be nice with a default markup. I decided to do an old style file override of the JS file.