| Author |
Message |
spasticdonkey RavenNuke(tm) Development Team

Joined: Dec 02, 2006 Posts: 1364 Location: Texas, USA
|
Posted:
Sat Sep 26, 2009 9:18 am |
|
In regard to:
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  |
|
|
|
 |
Palbin Site Admin

Joined: Mar 30, 2006 Posts: 2456 Location: Pittsburgh, Pennsylvania
|
Posted:
Sat Sep 26, 2009 3:57 pm |
|
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. |
|
|
|
 |
spasticdonkey RavenNuke(tm) Development Team

Joined: Dec 02, 2006 Posts: 1364 Location: Texas, USA
|
Posted:
Sat Sep 26, 2009 4:46 pm |
|
excellent, thx
spent some time today and think I'm catching onto the setup. |
|
|
|
 |
montego Site Admin

Joined: Aug 29, 2004 Posts: 9136 Location: Arizona
|
Posted:
Sun Sep 27, 2009 10:56 am |
|
spasticdonkey, do keep the feedback coming, especially if there are ways to improve upon the Wiki documentation. Thanks! |
|
|
|
 |
bdmdesign Worker


Joined: May 11, 2009 Posts: 151 Location: Winsen/Luhe; Germany
|
Posted:
Mon Oct 05, 2009 4:24 am |
|
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 |
|
|
|
 |
spasticdonkey RavenNuke(tm) Development Team

Joined: Dec 02, 2006 Posts: 1364 Location: Texas, USA
|
Posted:
Mon Oct 05, 2009 6:57 am |
|
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 Worker


Joined: May 11, 2009 Posts: 151 Location: Winsen/Luhe; Germany
|
Posted:
Mon Oct 05, 2009 9:08 am |
|
| 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 |
|
|
|
 |
|
|
|
|