Get XOOPS XOOPSXOOPS FAQFAQ ForumsForums NewsNews ThemesThemes ModulesModules

Search

Donate to XOOPS!

Please select an amount to donate


Do you want your username revealed with your donation?
Yes - List me as a Generous Donor
No - List my donation as from an Anonymous Donor


Local Support

Advertisement

XOOPS Code hosted on SourceForge

Cumulus Tag Cloud

admin Arabic banner block Christmas comments cumulus DayDawn dhsoft e-Commerce E-Learning Git Google GUI hacks instant-zero jQuery module mygalleries news Nordic Olédrion oxygen PageRank PHP rmcommon security SEO simple-XOOPS Smarty sport tag Theme tutorial wiki WOX xoops XoopsEngine ZendFramework

New Users

Registering user

# 133946

HamptonUdolf

Welcome to XOOPS!
[Main Page]

DevWiki XoopsModuleInSmarty

From XOOPS Web Application System

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

Printable version | Disclaimers | Privacy policy
Category: DevWiki

DevWiki Index

$xoops_module in Smarty

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

  1. 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}>

Skalpa

(Last edited on March 11, 2004 2:56 pm.)


DevWiki_Index

Retrieved from "http://xoops.org/modules/mediawiki/index.php/DevWiki_XoopsModuleInSmarty"

This page has been accessed 2,927 times. This page was last modified 05:40, 30 December 2007. Content is available under XOOPS Web Application System.