cancel
Showing results for 
Search instead for 
Did you mean: 

How to use JavaSript library stored in mime type repository???

Former Member
0 Kudos

Hi Experts

I currently have the situation that I would like to deploy several JavaScript functions in a multitude of templates. I need my own JavaScript functions as the provided functionality is not sufficient.

I have figured that I can add my function by using the script item and that works fine, but it requires the script to be entered in every template.

My idea is to store the central JS file in the mime type repository and then reference it, however it doesn't seem to work.

Does anybody have an idea on how to make it work or alternatively have a central JavaScript library that is used by several different templates?

Thanks for your help, regards,

Minima

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos
Former Member
0 Kudos

Thanks for the answer, DEEPU's comment realer helped.

Another solution is to create a Web Item that contains the coding. The Web Item can then be stored as reusable. This also looks like a neat solution for the problem.

Hope it will help some people.

Regards,

Minima

Answers (1)

Answers (1)

guillaume-hrc
Active Contributor
0 Kudos

Hi,

Maybe you could create a skeleton: that is to say a Web Template that contains customer-specific references to your javascript.

Best regards,

Guillaume