rejetto forum
February 12, 2012, 12:55:13 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: This forum is free, you do NOT need to register to post. But you may.
PROBLEMS? QUESTIONS? CLICK HERE!
Fill the survey!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Template Files  (Read 875 times)
0 Members and 1 Guest are viewing this topic.
SpiderPig902
Regular poster
**
Offline Offline

United States United States

Posts: 24


View Profile Email
« on: March 03, 2010, 08:44:11 AM »

I have i hope a simple questions. Can you have multiple templates files for one template? For example, i have many many sections in my TPL file and it takes forever to sift through the file. I would like to make multiple files and the maybe use a "INCLUDE" statement in the main TPL file to include the sub files into the template.
Can that be done? Or anything close?

Thanks
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11759


View Profile
« Reply #1 on: March 03, 2010, 08:51:40 AM »

you can load the content of sections from other files.

[progress]
{.load|progress.tpl.}
Logged
SpiderPig902
Regular poster
**
Offline Offline

United States United States

Posts: 24


View Profile Email
« Reply #2 on: March 05, 2010, 08:12:49 AM »

thanks. Doesent work that well when there are other macros and such in the file but it works.
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11759


View Profile
« Reply #3 on: March 05, 2010, 09:26:00 AM »

other macros work.
what doesn't work in the file are [sections].
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!


Google visited last this page February 11, 2012, 10:34:08 PM
anything