Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> RavenNuke / Raven CMS CMS Wiki
Author Message
spasticdonkey
RavenNuke(tm) Development Team



Joined: Dec 02, 2006
Posts: 1693
Location: Texas, USA

PostPosted: Sat Sep 26, 2009 9:18 am Reply with quote

In regard to: http://rnwiki.ravennuke.com/wiki/Loading_CSS_and_JavaScript

Just had a couple of questions regarding RN_MODULE_HEAD. I haven't had time to upgrade or play with the new distro as much as I would like, but I figure others may have these same questions...so,

With the introduction of RN_MODULE_HEAD is RN_MODULE_CSS still supported?
define ('RN_MODULE_CSS','mystyle.css');

and in this example it attempted to load the css from
themes/YOUR_THEME/style/

Is this where RN_MODULE_HEAD will look for css and js files?

Love the new wiki btw Smile
 
View user's profile Send private message Visit poster's website
Palbin
Site Admin



Joined: Mar 30, 2006
Posts: 2583
Location: Pittsburgh, Pennsylvania

PostPosted: Sat Sep 26, 2009 3:57 pm Reply with quote

RN_MODULE_HEAD will look in the root of your module.

RN_MODULE_CSS is still supported, and will load from the style folder within the theme.

_________________
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan. 
View user's profile Send private message
spasticdonkey







PostPosted: Sat Sep 26, 2009 4:46 pm Reply with quote

excellent, thx Smile
spent some time today and think I'm catching onto the setup.
 
montego
Site Admin



Joined: Aug 29, 2004
Posts: 9457
Location: Arizona

PostPosted: Sun Sep 27, 2009 10:56 am Reply with quote

spasticdonkey, do keep the feedback coming, especially if there are ways to improve upon the Wiki documentation. Thanks!

_________________
Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
bdmdesign
Worker
Worker



Joined: May 11, 2009
Posts: 154
Location: Winsen/Luhe; Germany

PostPosted: Mon Oct 05, 2009 4:24 am Reply with quote

define ('RN_MODULE_CSS','mystyle.css'); <<--- where i must put this in ?

I tryed to load the osc.css its now in style and called catalog.css.

What must i do to load this css file?

Best Regards

Peter

_________________
CMS-Version: pragmaMx 1.12.3.1.33.4.14 :: PHP-Version: 5.3.14 :: MySQL-Version: 5.5.23-log :: Server-Version: Apache/2.2.21 (Linux/SUSE)
Projekt: osc4pragmaMx- 2.3.2 in development 
View user's profile Send private message Visit poster's website
spasticdonkey







PostPosted: Mon Oct 05, 2009 6:57 am Reply with quote

RN_MODULE_CSS is for module-level css, so insert in your module index
modules/Your_Module/index.php
something like:

Code:
if ( !defined('MODULE_FILE') )

{
   die("You can't access this file directly...");
}

require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
get_lang($module_name);
// To use Custom CSS in your RavenNuke Module
// place CSS file in themes/YOUR_THEME/style directory
// otherwise comment out
define ('RN_MODULE_CSS','your-css.css');
 
bdmdesign







PostPosted: Mon Oct 05, 2009 9:08 am Reply with quote

spasticdonkey wrote:
RN_MODULE_CSS is for module-level css, so insert in your module index
modules/Your_Module/index.php
something like:

Code:
if ( !defined('MODULE_FILE') )

{
   die("You can't access this file directly...");
}

require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
get_lang($module_name);
// To use Custom CSS in your RavenNuke Module
// place CSS file in themes/YOUR_THEME/style directory
// otherwise comment out
define ('RN_MODULE_CSS','your-css.css');


Thanx i will try it so.

Best Regards

Peter
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> RavenNuke / Raven CMS CMS Wiki

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 can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©