Re: Adding CSS and .js

modius <[email protected]> Mon, 12 Oct 2009 02:20:19 -0700 (PDT)
Newsgroups gmane.comp.cms.farcry.user
Message-ID <[email protected]>
On Oct 12, 6:53=A0pm, Mike BWD <gadd.m...-gM/[email protected]> 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 ([email protected]) $

|| 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
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "=
farcry-user" group.
To post to this group, send email to farcry-user-/[email protected]
To unsubscribe from this group, send email to farcry-user+unsubscribe@googl=
egroups.com
For more options, visit this group at http://groups.google.com/group/farcry=
-user?hl=3Den
-~----------~----~----~----~------~----~------~--~---