1
_Stop
articles theme different
  • 2004/1/14 17:17

  • _Stop

  • Just popping in

  • Posts: 6

  • Since: 2004/1/10


hi,

i'd like my articles module to use a different theme from the rest of the my site.
is there a way to do it?

advanced thx,
Carla

2
chapi
Re: articles theme different
  • 2004/1/14 17:26

  • chapi

  • Theme Designer

  • Posts: 611

  • Since: 2002/1/22


You could put this code at the beginning of your theme.html. This will detect the module your site is currently displaying.

<{php}>
$mod $GLOBALS['xoopsModule'];
$dirname = (isset($mod) ? $mod->getVar('dirname') :'system');
$GLOBALS['xoopsTpl']->assign'xoops_cmod'$dirname );
<{/
php}>


After that you could add this if statement to define a different layout for the news module.

<{if $xoops_cmod == "news"}>
html code for the news module
<{else}>
html code for the rest of your page
<{/if}>

3
_Stop
Re: articles theme different
  • 2004/1/14 17:34

  • _Stop

  • Just popping in

  • Posts: 6

  • Since: 2004/1/10


i'll try that to see if works.
thx so much!

Login

Who's Online

158 user(s) are online (104 user(s) are browsing Support Forums)


Members: 0


Guests: 158


more...

Donat-O-Meter

Stats
Goal: AU$15.00
Due Date: Jun 30
Gross Amount: AU$0.00
Net Balance: AU$0.00
Left to go: AU$15.00
Make donations with PayPal!

Latest GitHub Commits