1
jsabater
Templates in control panel
  • 2003/11/20 12:25

  • jsabater

  • Just popping in

  • Posts: 7

  • Since: 2003/11/11


Hi. I am new to XOOPS and still trying to finish my first module.

So, I am programming the control panel scripts that control my module options and contents (it's a multiquestion survey, by the way), and I have not been able to use templates in it.

Looking inside the official modules, I have seen that they do not use templates in the admin scripts. Looking at /include/cp_header.php script, I see there is no include nor template initialization and management as in /header.php.

Could it be possible to add that feature? I mean, no need for blocks, no need for anything else than template initialization, so that one could do with these lines (as in module public scripts):

$xoopsOption['template_main'] = 'surveys_index.html';
oopsTpl->assign('lang_category', _SR_CATEGORY);

And so on...

Thanks in advance.

2
Herko
Re: Templates in control panel
  • 2003/11/20 12:46

  • Herko

  • XOOPS is my life!

  • Posts: 4238

  • Since: 2002/2/4 1


The reason we don't use admin templates is because if there's an error in them, you can't go to the admin to corect it (because the admin would be broken as well). However, we are currently working on a more secure way to theme the admin side, so stay tuned for news about that

Herko

Login

Who's Online

436 user(s) are online (96 user(s) are browsing Support Forums)


Members: 0


Guests: 436


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