calendarxp Site Admin
Joined: 30 Jan 2005 Posts: 409
|
Posted: Tue Feb 15, 2005 6:49 pm Post subject: How can I organize theme files in a different directory other than the default engine directory? |
|
|
In the calendar tag, you need to change the value of name & id properties to include the absolute/relative path to the theme directory. e.g.
Code: | <iframe name="gToday:/theme1/normal:agenda.js:gfPop:./plugins.js" id="gToday:/theme1/normal:agenda.js:gfPop:./plugins.js" src="/engine/ipopeng.htm" ... > </iframe> |
The above tag will load the normal theme from absolute web path /theme1/, while loading agenda.js and plugins.js from /engine/. This is true for both PopCalendarXP and FlatCalendarXP. But it may be confusing because the paths in the name & id are relative to the src, NOT the containing page.
Therefore we always recommend you put all calendar related files together within the same directory with the ipopeng.htm, and only use path in the src property. e.g.
Code: | <iframe name="gToday:normal:agenda.js:gfPop:plugins.js" id="gToday:normal:agenda.js:gfPop:plugins.js" src="engine/iflateng.htm" ... > </iframe> |
In this case, all calendar files are located in the "engine" dir.
_________________ Copyright 2003-2011 Idemfactor Solutions, Inc. All rights reserved. |
|