User Login    
 + Register
  • Main navigation
Vote for XOOPS!!!!
Login
Username:

Password:


Lost Password?

Register now!
Documentation
Who's Online
76 user(s) are online (4 user(s) are browsing XoopsWiki)

Members: 4
Guests: 72

credman, meezs, Seapyramid, DarinAllan, more...
[Main Page]

Dev:Xoops Module In Smarty

From XOOPS Project

Main Page | Recent changes | Edit this page | Page history | Switch to MediaWiki mode

Printable version | Disclaimers | Privacy policy
Category: Development

(Note from the author ;-) this feat isn't implemented in any released version. I'll remove this comment when it is)

1)You can get some info about the current module using

   <{$xoops_module.name}>
   <{$xoops_module.dirname}>
   <{$xoops_module.version}>

in your templates.

If the variable isn't set, that means we're within the "system" module.

2)There also is another new template variable called $xoops_modulecss. This one may be, in order of preference:

A) /themes/curtheme/mod_dirname.css (or mod_system.css for system pages) B) /modules/dirname/theme.css C) Undefined (if none of the above files exists)

So, module writers may want to add a theme.css file in their mod dir to define custom CSS classes, etc...

And theme writers can create mod_xxxxx.css files that will override the default one. As the variable may be undefined, add something like this to your main theme file:

   <{if isset($xoops_modulecss)}>
   <link rel="stylesheet" type="text/css" href="<{$xoops_modulecss}>" />
   <{/if}>


Back to the dev:Main Page

Retrieved from "http://www.xoops.org/modules/mediawiki/index.php/Dev:Xoops_Module_In_Smarty"

This page has been accessed 386 times. This page was last modified 02:05, 16 December 2007. Content is available under XOOPS Project.


Local Support Sites
Powered by
XOOPS Code hosted on SourceForge

Powered by PHP



Powered by MySQL

Powered by Smarty

OSI certified

All content on this site is subject to the Creative Commons License
Developers for Hire