You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.
For file includes on custom skins, should do we link to them in the skin.php?
..Or is there a folder/file naming convention to follow whereby they're automatically linked.
Offline
You can just create a directory in the skin's directory and save them there. No need to link them up anywhere. When you go to include one of the files, the syntax is:
include($this->globals('core.path_public') . '/skins/SKIN-ID/INCLUDE-DIR/INCLUDE-FILE.php');
As in:
include($this->globals('core.path_public') . '/skins/flex/scripts/customnav.php');
Offline
Is there anything special I need to do for .js files? I tried using <script src="..."> in the skin.php and it loaded just fine. But after I made a change to the .js, it took awhile for the changes to be reflected in the page (After clearing the browser cache). I loaded the page maybe a dozen times over 15 minutes clearing the browser cache each time and it eventually showed.
Offline