XF 1.4 How to get search code inside a custom template?

grantus

Active member
I have a template where I'd like to put my own search box but I don't know what the code would be to use the Xenforo search.

I do have this:

Code:
<form action="https://www.example.com/search/1/?q=">

Which does work but the problem is I want the search to be only for titles and posts. So I tried this:

Code:
<form action="https://www.example.com/search/1/?q=&type=post&title_only=1">

But it just uses the "?q=".

Any ideas?
 
Back
Top Bottom