Author |
Message |
spasticdonkey
RavenNuke(tm) Development Team

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

Joined: Mar 30, 2006
Posts: 2583
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. |
_________________ "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. |
|
|
 |
spasticdonkey

|
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: 9457
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! |
_________________ 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! |
|
|
 |
bdmdesign
Worker


Joined: May 11, 2009
Posts: 154
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 |
_________________ 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 |
|
|
 |
spasticdonkey

|
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

|
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 |
|
|
|
 |
|