MyBB Community Forums

Full Version: split a template into two templates
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is it possible to split a template into two parts.

header template contains :

<div class="topmenu" >
<ul>
	<li><a href="{$mybb->settings['bburl']}/">{$lang->toplinks_portal}</a></li>
	<li><a href="{$mybb->settings['bburl']}/index.php">{$lang->forumbit_forum}</a></li>
	<li><a href="{$mybb->settings['bburl']}/search.php">{$lang->toplinks_search}</a></li>
	<li><a href="{$mybb->settings['bburl']}/memberlist.php">{$lang->toplinks_memberlist}</a></li>
	<li><a href="{$mybb->settings['bburl']}/calendar.php">{$lang->toplinks_calendar}</a></li>
	<li><a href="{$mybb->settings['bburl']}/misc.php?action=help">{$lang->toplinks_help}</a></li>
	<li><a href="{$mybb->settings['bburl']}/donate.php">{$lang->toplinks_donate}</a></li>
</ul>
</div>

I would like to have

{$template_topmenu}

thanks all
What you want to do with the header? Adding a new variable will need to edit ./global.php file aswell.
I want just extract the menu link into a dissociated template
And I will wish to integrate as a footer like this: http://return-true.com/2010/04/jquery-po...version-2/

but make a template for inside text
I add the footer, and I would like to fill it with the template contents.
anyone ?

see here