Keep globalSearchBox on every page

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
nixanwin
Posts: 11
Joined: Mon Aug 02, 2010 9:14 pm

Keep globalSearchBox on every page

Post by nixanwin » Fri Dec 03, 2010 6:34 pm

Currently if I click an FAQ, the "Search" bar disappears. I would like it to stay put on all pages. My php skills are limited but I found the code below from the index.tpl, but I'm not sure how to accomplish this. If I remove the [globalSearchBox] tags, then it stays on all pages but search no longer works. Any help is appreciated.

[globalSearchBox]
<form id="search" action="{writeSendAdress}" method="get">
<input type="text" name="search" id="searchfield" size="30" />
<input type="submit" name="submit" value="{searchBox}" />
<input type="hidden" name="searchcategory" value="{categoryId}" />
<input type="hidden" name="action" value="search" />
</form>
[/globalSearchBox]

Post Reply