Hi Matthew,

Matthew Krenmayr spoke the following wise words on 28/06/2004 4:37 PM EST:
I would really appreciate advice about including script, especially JavaScript, into a FarCry CMS site.
In particular I would like to know whether it is possible to link in a separate JavaScript file into new display methods, eg. displaypageStandard.cfm, and similar related places like the header and footer files.


Any clues about existing documentation to look at or other pointers would be greatly received.

To change the header and footer it's as simple as changing project/webskin/includes/dmHeader.cfm and dmFooter.cfm


Look in project/webskin/dmHTML/displaypageStandard.cfm to see how the dmHeader is included.

If you're wanting to include different JS files for different display templates you could change the dmHeader.cfm to take a attribute called 'aJavascriptIncludes' which takes an array of strings of JS files to include in the header.

Anything in your project directory you can change to suit your needs -- especially your webskins!

-- tim lucas

http://www.toolmantim.com


--- You are currently subscribed to farcry-dev as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to