| Re: Just wondering... |
| by skippern on 2006/1/30 23:22:17 I solved it a bit easier, in a more simple way... found the line/code <{$xoops_pagetitle}> and it did exactly what I was looking for. Sometimes it´s hard to explain exactly the problem and the english language, who isn´t my native language (swedish) makes it more difficult... but I´m grateful for all the help you are giving me and everybody in the XOOPS community. |
| Re: Just wondering... |
| by m0nty on 2006/1/30 19:51:15 depends on what the module is and whereabouts really you want the name displayed.. i don't know what you are referring to as a heading.. |
| Re: Just wondering... |
| by skippern on 2006/1/30 19:37:26 Forgive me... but where should I put this smarty value? Do I have to say I´m a novice
|
| Re: Just wondering... |
| by m0nty on 2006/1/30 17:43:09 sure, assign it a smarty value.. ;) use $module_name = $module->getVar('name'); to grab the value then assign the smarty where you want > $smartyid['module_name'] = trim($module_name); resultant smarty would then be <{$smartyid.module_name}> or use: $xoopsTpl->assign('current_module_name', trim($module_name)); the smarty then would be <{$current_module_name}> of course (smartyid) should be name appropriately like the rest of your smarty tags.. think that should work... but i'm no expert. |
| Just wondering... |
| by skippern on 2006/1/30 14:50:24 Hello again! I´m just wondering if it´s possible to use the name of the module, the name I have given the module in the admin area, in the modules own pages (as a heading) by using a smarty tag/a line of code? Regards |