1
Kumar
How to check whether it is module index page or subpage?
  • 2007/7/27 6:35

  • Kumar

  • Just popping in

  • Posts: 61

  • Since: 2005/8/8 1


Is there a way/smarty variable to check whether the user is in module index page or sub page?
Thanks

2
pod
Re: How to check whether it is module index page or subpage?
  • 2007/7/27 7:09

  • pod

  • Quite a regular

  • Posts: 301

  • Since: 2003/4/19


<{if $xoops_dirname == "module_folder"}>          
          <{if 
$xoops_requesturi == "/your_xoops_root/modules/module_folder/index.php" or $xoops_requesturi == "/your_xoops_root/modules/module_folder/"}>
Display this on the index page of this module
          
<{else}>
Display this on sub-pages of this module     
          
<{/if}>  
<{/if}>

Hope this helps!
whttp://www.myxoops.com - MyXoops Is Your XOOPS!

3
Kumar
Re: How to check whether it is module index page or subpage?
  • 2007/7/27 13:03

  • Kumar

  • Just popping in

  • Posts: 61

  • Since: 2005/8/8 1


Thank you verymuch for the help. This woks fine.

Login

Who's Online

303 user(s) are online (234 user(s) are browsing Support Forums)


Members: 0


Guests: 303


more...

Donat-O-Meter

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

Latest GitHub Commits