Would you rather have a search form out front on a web page rather than relying on your clients to click on a search link? It’s really easy to add a search form to any TTG CE4 page.
The code that puts the search form on the Search page is viewable by just looking at the page source (right-click on your page and choose “view page source”).
Just copy this code and, with a small change, use it in any TTG Page Copy(md) field.
Here’s the code to look for (or just copy this):
<div id="search" class="collapse clearfix"> <h2>Photo Search</h2> <form action="./" method="GET"> <input type="text" id="q" name="q" value=""/> <button type="submit">Search</button> </form> </div> <!-- #search -->
You’ll need to change one line though. Change this line:
to this:
This assumes that your Search page is in the root of your site. If it’s not, then modify the path accordingly.
Thx for this nice tip.
It is working fine … but after klicking on the search button I`m directed to the search page. (the one I get after clicking on the search menu.
The behavior I expected is to stay on this site and get the search results on this page
Kindly asking for a tip how to solve this issue
Thomas
Search results can only show up on the search page so the behavior is as it is.