PDA

View Full Version : Add Template Variable to Navbar Template


rpainter
09-11-2007, 02:31 AM
Hello. I have no idea how to ask this question. I am not a coder, but I am trying. I have created a product, and all of the Plugins and Phrases that go with it. Now my only questions how can I insert the variable into the template automatically?

I want to add the Template Variable "$weather_search" to the Navbar Template in the search dropdown box. Right now, I have it working, but I had to manually edit the template.

I would like the variable to come after this code:

<td class="vbmenu_option"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[advanced_search]</a></td>
</tr>

So that all of the code looks like this:

<td class="vbmenu_option"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[advanced_search]</a></td>
</tr>
$weather_search
$template_hook[navbar_search_menu]
</table>

Do I need to put somethin in the Install Code part of the Product? Sorry if this is easy, but I don't know the answer. Thanks for all of your help.