1
Antoine
Display templates not in modinfo.php
  • 2005/6/22 14:16

  • Antoine

  • Friend of XOOPS

  • Posts: 112

  • Since: 2004/11/14


First of all: I used the search to look for an answer to this question and it came up with nothing. If this question has already been answered: Sorry!

I made a custom module that needs to be very flexible in what templates it can display. This cause these templates need to be able to be added and removed by someone that knows only HTML without having to update the modinfo.php file and do a refresh on the module every time.

Is there a way to display a template by file instead of by database entry using $xoopsTpl? For example:

$xoopsTpl->xoops_setCaching(0);
$xoopsTpl->display('file:'.$selected_template);

Thanks in advance.

2
Antoine
Re: Display templates not in modinfo.php
  • 2005/6/22 17:57

  • Antoine

  • Friend of XOOPS

  • Posts: 112

  • Since: 2004/11/14


Ok, found the answer myself by experimenting with it.

Just specify the full path to the template in $xoopsTpl->display(<full_path_here>) without a db: prefix.

Login

Who's Online

187 user(s) are online (118 user(s) are browsing Support Forums)


Members: 0


Guests: 187


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