Hi, I would use mgnl-resources, or even better, the resources workspace (that way you can change it without redeploying).
Regards from Vienna, Richard > -----Ursprüngliche Nachricht----- > Von: [email protected] [mailto:user-list-owner@magnolia- > cms.com] Im Auftrag von Juraj Bubniak (via Magnolia Forums) > Gesendet: Dienstag, 05. August 2014 12:52 > An: Magnolia User List > Betreff: [magnolia-user] custom javascript in component > > Hello, im working on custom component and want to include custom > javascript file (library) only when i add the component to the page (ie: i > dont > want to include the script in the page head but in the component). This file > is > not going to change often (only when we need to upgrade the library to the > newer version), so what is the best way and where should i put it ? I am > thinking about mgnl-resources, but how can i get the link to the resource > then ? Thank you. > > -- > Context is everything: http://forum.magnolia- > cms.com/forum/thread.html?threadId=703ff392-1c2f-409a-a884- > afe80119ecc4 > > > ---------------------------------------------------------------- > For list details, see http://www.magnolia-cms.com/community/mailing- > lists.html > Alternatively, use our forums: http://forum.magnolia-cms.com/ > To unsubscribe, E-mail to: <[email protected]> > ---------------------------------------------------------------- ---------------------------------------------------------------- For list details, see http://www.magnolia-cms.com/community/mailing-lists.html Alternatively, use our forums: http://forum.magnolia-cms.com/ To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
