![]() |
Include a template within another template?
Is it possible to include a template within another template?
I'm creating a mod for one of my sites that has one generic template to setup a table for display purposes, and then I'd like to include a second template that will be different according to the style. I thought of doing it this way this way to save a template, as the first thought that came to mind was splitting the display template into two, and concatenate the three together to establish what I need. Here's a code snippet to help visualize this... Code:
<table class="tborder" border="0" width="100%" align="center" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]"> |
You will need to evaluate both templates in a PHP script/plugin. Assign the value of template 1 to a variable, and use that variable in template 2.
|
Thanks Marco, it was late and I didn't even think of that.
|
All times are GMT. The time now is 06:59 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|