Advertise With Us
View next topic
View previous topic
Post new topic   Reply to topic   print   Thank Post
Author Message
snype
Regular
Regular



Joined: Apr 20, 2010
Posts: 11

Reputation: 1

PostPosted: Sun Jun 06, 2010 1:46 am Reply with quote Back to top

Hello nuken again lol,

I have another question that i think with your knowledge you may be able to answer.

What is the best way of adding JS to blocks? i know with modules you can do addJSToHead and addCSSToHead but does this method work with blocks?

Thanks
Snype
 
View user's profile Send private message
bobby
Site Admin
Site Admin



Joined: Jan 20, 2009
Posts: 532

Reputation: 427.2
Votes: 1

PostPosted: Sun Jun 06, 2010 4:12 am Reply with quote Back to top

The way I use is to add an includes/addons/head-filename.php file with the addJSToHead function in it. The cms will pick up on the new head file and add it to the array.

_________________
Tricked Out News 
View user's profile Send private message
snype
Regular
Regular



Joined: Apr 20, 2010
Posts: 11

Reputation: 1

PostPosted: Sun Jun 06, 2010 5:07 am Reply with quote Back to top

WOW man you really rock that even fixed the conflict with the nukeNAV that i was having. Thank you very much Very Happy Very Happy
 
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic   print   Thank Post

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


Powered by phpBB © 2001-2008 phpBB Group

All times are GMT + 10 Hours
Forums ©

HomeTwitterFaceBookFeedsDonateRecommended Sites

Recommended Sites

Raven PHP Scripts

Nuke SEO

Montego Scripts

Code Authors

nunuke.co.uk