{{indexmenu_n>500}} ====== Modules ====== ===== Include FE custom CSS/JS in a module ===== To get css or js files included in the frontend output (in the head) of your module add them to your code like: **Docu:** -- \\ **Forum:** [[http://forum.phpwcms.org/viewtopic.php?p=113969#p113969|How to include custom CSS in module]] **Autor:** breitsch \\ **CMS-Version:** >= V1.3.0 \\ **Version:** -- //(2009/02/21)// \\ **Update:** -- **Condition:** -> [[http://www.phpwcms-docu.de/conf_inc_php_en.phtml|/config/phpwcms/conf.inc.php]] \\ * $phpwcms['allow_ext_init'] = 1; * $phpwcms['allow_ext_render'] = 1; * $phpwcms['allow_cntPHP_rt'] = 1; ---- ---- \\ // load js functions $block['custom_htmlhead']['javascript.js'] = ' '; //load inline css $block['custom_htmlhead']['inlinecss.css'] =''; //load external style sheet $GLOBALS['block']['custom_htmlhead']['externalcss.css'] = LF.' '; last key of the $block array must be unique! ===== Include BE custom JS in a module ===== $BE['HEADER'][] = getJavaScriptSourceLink('include/inc_js/optionselect.js');