Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Path in external JS
#1
Hi,

My HTML5 theme is based on the SkelJS frontend framework and basic configuration is done in an external Javascript file.

Example for static HTML:

window._skel_config = {
preset: 'standard',
prefix: 'css/style',
resetCSS: true
};

Within GetSimpleCMS, I need however to put the full path from the root of the hosting space for the prefix variable :

window._skel_config = {
preset: 'standard',
prefix: '/cms/theme/mytheme/css/style', ( or http://www.mydomain.com/cms/theme/mytheme/css/style )
resetCSS: true
};

I don't understand why I do need to put the complete path when code is served by GetSimple.

I would prefer relative paths, but all my tests so far failed.

Many thanks for your help,
Romain
Reply


Messages In This Thread
Path in external JS - by rpetges - 2013-08-18, 07:43:47
RE: Path variable in external JS - by Carlos - 2013-08-18, 17:42:56
RE: Path in external JS - by rpetges - 2013-08-18, 17:51:03
RE: Path in external JS - by Carlos - 2013-08-18, 18:17:24
RE: Path in external JS - by rpetges - 2013-08-19, 14:03:41
RE: Path in external JS - by Carlos - 2013-08-19, 16:39:43
RE: Path in external JS - by Kolyok - 2013-08-19, 15:45:55
RE: Path in external JS - by shawn_a - 2013-08-19, 23:08:07
RE: Path in external JS - by rpetges - 2013-08-23, 00:58:17



Users browsing this thread: 1 Guest(s)