| Re:Getting current module name |
| by marcan on 2004/10/17 11:18:13 Hi reynaldom try this code : le="color: #000000"><?php Global $xoopsModule; $moduleName = $xoopsModule->getVar('name'); $dirName = $xoopsModule->getVar('dirname'); The $moduleName variable now holds the name of the module, ie the name defined in System Admin > Modules for the specific module where the user is currently in. The $dirname variable holds the name of the folder of the module, ie in http://www.yoursite.com/modules/$moduleName Hope it helps ! Cheers ! |
| Getting current module name |
| by reynaldo on 2004/10/17 9:29:30 Hello, I don't know if this is the appropriated forum for this question: how can I get the current module name? for example, let’s say I want to code a block which display current module name. How can I get it to display it using XOOPS API and without having to resort to cheap tricks like extracting it from the current URL? Is this possible? I read XOOPS API documentation but couldn’t find anything related. ![]() Thanks for your help. |