I would like to use some of the external jquery plugins in one of the application that i am developing now, so how i can add code to the header part of the page ?
and incase i would like to add a script like google code for all the portal pages, how can i do this ?
09.04.2013 09:07 von ibrhaa
Hi,Load custom scripts on page header (global portal)
there are two ways you can work with.
In the file
<portal>/internal/system/vm/custom/custom_head.vm you can add lines to lood custom scripts within the page header. This velocity file will be parsed on each header of each application of the portal.
You can load custom js files with
Loader.loadJsFileOnDemand( p_fileName [, p_bAsync] ). This methode is the recommend one to load js dynamically since it will prevent from loading files multiple times.
If you do not want to load the file on each page you can add the call to the onload-event of the page you need to include it for example.
Hopefully this will help...
btw. if you want to use some functions of the jQueryUI please note that this library is already placed in intrexx at <portal>/external/htmlroot/thirdparty/jquery/plugins/jqueryui but not loaded by default. In the plugins folder you will find also some other libraries like fancybox....
09.04.2013 11:47 von handw3rker
Thanks as you have said Option 2 more optimal
12.04.2013 08:15 von ibrhaa