Templates in Templates
ez |
|
---|---|
This question is for plugins.
Is there a way to have a main template and insert a part in there that comes from an other template.. MAIN some main stuff here {OUTPUT_FROM_ROWS_TEMPLATE} MAIN So the ROWS part of the main.tpl is build in a separate template (main.rows.tpl) Is this possible, and if so, what is the best way to do this ? So maybe it is just get the HTML code from a processed Template, and insert that into another template with a TAG??? Added 1 hour 8 minutes later: I found it when digging into the code :): $rowtemplate->text(); I can use this for AJAX calls to change the ROWS data based on some criterea.. Like data filters.. ==- I say: Keep it EZ -==
|
|
This post was edited by ez (2010-04-08 18:50, 14 years ago) |
Trustmaster |
|
---|---|
Includes have been in XTemplate since Seditio:
<!-- BEGIN: MAIN -->
...
<!-- BEGIN: ROW -->
{FILE main.rows.tpl}
<!-- END: ROW -->
...
<!-- END: MAIN -->
May the Source be with you!
|