1
cneise
How to use templates in admin pages
  • 2005/4/23 22:33

  • cneise

  • Just popping in

  • Posts: 10

  • Since: 2005/4/3 2


Hello,

i would like to use template within admin pages (for module administration).

For non-admin-pages (for the uses) i use this code at the beginning of my php script:
require '../../mainfile.php';
$xoopsOption['template_main'] = 'tokens.html';
require_once 
XOOPS_ROOT_PATH '/header.php';


The module admin script starts with these lines of code:
require ('../../../include/cp_header.php');
xoops_cp_header();


How to i use my smarty template here?

Best regards!

Christian Neise.

2
Gambero[removed]
Re: How to use templates in admin pages

Admin area doesn't use smarty yet. So, you can't!

3
Dave_L
Re: How to use templates in admin pages
  • 2005/4/23 22:45

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


Actually, you can, but you have to add soem extra code. Please try searching. There have previous posts about this.

4
cneise
Re: How to use templates in admin pages
  • 2005/4/24 15:41

  • cneise

  • Just popping in

  • Posts: 10

  • Since: 2005/4/3 2


Thank you very much!

Christian Neise.

5
Herko
Re: How to use templates in admin pages
  • 2005/4/24 16:09

  • Herko

  • XOOPS is my life!

  • Posts: 4238

  • Since: 2002/2/4 1


XOOPS 2.1.0 will have this added.

Herko

6
sinus
Re: How to use templates in admin pages
  • 2005/7/7 15:27

  • sinus

  • Just popping in

  • Posts: 27

  • Since: 2005/6/11


cant seem to find the date of ur post... too sleepy... when will XOOPS 2.1.0 be released? an estimate maybe?

7
Mithrandir
Re: How to use templates in admin pages

Sunday
"When you can flatten entire cities at a whim, a tendency towards quiet reflection and seeing-things-from-the-other-fellow's-point-of-view is seldom necessary."

Cusix Software

Login

Who's Online

417 user(s) are online (156 user(s) are browsing Support Forums)


Members: 0


Guests: 417


more...

Donat-O-Meter

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

Latest GitHub Commits