1
skippern
Just wondering...
  • 2006/1/30 14:50

  • skippern

  • Just popping in

  • Posts: 27

  • Since: 2005/12/5


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

2
m0nty
Re: Just wondering...
  • 2006/1/30 17:43

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


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.

3
skippern
Re: Just wondering...
  • 2006/1/30 19:37

  • skippern

  • Just popping in

  • Posts: 27

  • Since: 2005/12/5


Forgive me... but where should I put this smarty value? Do I have to say I´m a novice

4
m0nty
Re: Just wondering...
  • 2006/1/30 19:51

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


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

5
skippern
Re: Just wondering...
  • 2006/1/30 23:22

  • skippern

  • Just popping in

  • Posts: 27

  • Since: 2005/12/5


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.

Login

Who's Online

205 user(s) are online (129 user(s) are browsing Support Forums)


Members: 0


Guests: 205


more...

Donat-O-Meter

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

Latest GitHub Commits