Adding CSS and .js

View: New views
3 Messages — Rating Filter:   Alert me  

Adding CSS and .js

by Mike BWD :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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
--~--~---------~--~----~------------~-------~--~----~
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@...
To unsubscribe from this group, send email to farcry-user+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/farcry-user?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Adding CSS and .js

by modius :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Oct 12, 6:53 pm, Mike BWD <gadd.m...@...> 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 (mbryant@...) $

|| 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@...
To unsubscribe from this group, send email to farcry-user+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/farcry-user?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Adding CSS and .js

by Mike BWD :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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
--~--~---------~--~----~------------~-------~--~----~
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@...
To unsubscribe from this group, send email to farcry-user+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/farcry-user?hl=en
-~----------~----~----~----~------~----~------~--~---