rejetto forum

Template Files

0 Members and 1 Guest are viewing this topic.

Offline SpiderPig902

  • Occasional poster
  • *
    • Posts: 24
    • View Profile
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


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
you can load the content of sections from other files.

[progress]
{.load|progress.tpl.}


Offline SpiderPig902

  • Occasional poster
  • *
    • Posts: 24
    • View Profile
thanks. Doesent work that well when there are other macros and such in the file but it works.


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
other macros work.
what doesn't work in the file are [sections].