Adding CSS and .js

1 view
Skip to first unread message

Mike BWD

unread,
Oct 12, 2009, 3:53:21 AM10/12/09
to farcry-user
Hi All
What is the best way to add page specific CSS and .js files?
Seems silly to add to the dm header when code is only needed on one
page.

Many thanks

modius

unread,
Oct 12, 2009, 5:20:19 AM10/12/09
to farcry-user
On Oct 12, 6:53 pm, Mike BWD <gadd.m...@googlemail.com> wrote:
> What is the best way to add page specific CSS and .js files?
> Seems silly to add to the dm header when code is only needed on one
> page.

Look in the ./tags/webskin folder for skin:htmlHead tag:

|| DESCRIPTION ||
$Description: htmlHead tag - This tag reproduces the functionality of
cfhtmlHead however maintains functionality if used in a webskin and
that webskin has been cached. $

|| DEVELOPER ||
$Developer: Matthew Bryant (mbr...@daemon.com.au) $

|| ATTRIBUTES ||
$in: text -- the content to be added to the head. $
$in: id -- an id for the content to be added to the head. If the key
already exists, it is not added again. This ensures it is not added
multiple times $
$in: library -- used in add predefined libraries from core. This can
optionally be a list of libraries. $
$in: libraryState -- used to turn predefined libraries on or off.
Default turns the library on. $

That'll do the trick nicely.

-- geoff
http://www.daemon.com.au

Mike BWD

unread,
Oct 12, 2009, 9:36:19 AM10/12/09
to farcry-user
Thanks for the reply Geoff

I am sorry but cannot find any ref on how to implement this, if you or
anybody could give an example that would be great.
Many Thanks
Reply all
Reply to author
Forward
0 new messages