2013-05-30, 11:46 AM
Well i would like to create a new template and then insert it to an other template by using a code like <navigation> or $navigation i dont mind at all.
i hope you understand what i mean.
i hope you understand what i mean.
<tr><td class="trow2"><strong>Hello world</strong></td></tr>
And you'll put <template my_new_template> in index_birthdays:<tr><td class="tcat"><span class="smalltext"><strong>{$lang->todays_birthdays}</strong></span></td></tr>
<tr>
<td class="trow1"><span class="smalltext">{$bdays}</span></td>
</tr>
<template my_new_template>
It will output:<tr><td class="tcat"><span class="smalltext"><strong>{$lang->todays_birthdays}</strong></span></td></tr>
<tr>
<td class="trow1"><span class="smalltext">{$bdays}</span></td>
</tr>
<tr><td class="trow2"><strong>Hello world</strong></td></tr>
(2013-05-30, 07:42 PM)Destroy666 Wrote: [ -> ]Sorry, but what? I don't see how it is relevant to the question asked in topic, which I answered.you know exactly what i want to do but for some reason it does not work i will make a video so u can see.
Once again - to put the new template inside another one you need to use <template YOURTEMPLATENAME> inside the other template, where YOURTEMPLATENAME is the name of new custom template you created. It will put the code from YOURTEMPLATENAME to the place where you inserted it.
So if the my_new_template contains this:
And you'll put <template my_new_template> in index_birthdays:<tr><td class="trow2"><strong>Hello world</strong></td></tr>
It will output:<tr><td class="tcat"><span class="smalltext"><strong>{$lang->todays_birthdays}</strong></span></td></tr> <tr> <td class="trow1"><span class="smalltext">{$bdays}</span></td> </tr> <template my_new_template>
<tr><td class="tcat"><span class="smalltext"><strong>{$lang->todays_birthdays}</strong></span></td></tr> <tr> <td class="trow1"><span class="smalltext">{$bdays}</span></td> </tr> <tr><td class="trow2"><strong>Hello world</strong></td></tr>
If you want the template to be under another templates in ACP, not in ungrouped, you need to write own plugin and insert it to the set you want with query (requires PHP and MySQL knowledge, look how is it done for example in MyAlerts), but I don't see the connection to the question asked in topic.