This is a discussion on Seach to home.tpl within the v3.1 Questions & Support forums, part of the v3.1 Legacy Help & Support category; Is there a way to add the search to the home page? Not the standard "search for this text" but ...
|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Is there a way to add the search to the home page? Not the standard "search for this text" but the one that expands to the searchable fields when you select the category.
|
|
#2
|
||||
|
||||
|
I think you can do this although I have never tried.
What you will need to do is copy out all the javascript and the form from the search template file and place it in home.tpl.php
__________________
Eric Barnes 68 Classifieds Developer Please do not send me a private message asking for support. Instead use these open forums or our ticket system. Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | Twitter |
|
#3
|
|||
|
|||
|
Tried that. It puts the form with only text to search for and a category select box, but there's no choices except "all" for that. This of course means none of the searchable fields for that category are available either.
|
|
#4
|
||||
|
||||
|
I forgot about the category portion. If you have the developer edition you can add this code in the index.php file:
PHP Code:
__________________
Eric Barnes 68 Classifieds Developer Please do not send me a private message asking for support. Instead use these open forums or our ticket system. Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | Twitter |
|
#5
|
|||
|
|||
|
What should I do if I want to add it to the page content pages?
__________________
Terje billigbolig.no V3.1.5b Developer |
|
#6
|
||||
|
||||
|
I would suggest somehow putting it in your layout.tpl then you can use this on anypage you wish.
You will however have to add the PHP Code:
__________________
Super Mod v4 Is out and ready for download. DEMO Purchase V4 Super Mod BETA at Reduced Price Visit Me @ Classified-Sofware.co.uk **Important** - All modules with the exceptions of the Bulk Upload System will be removed from my modshop on Tuesday September 30th. If you require a module you must get it before that date. |
|
#7
|
||||
|
||||
|
For the content pages you would have to make the same changes listed above and add the php code to the pages.php file and not in the text editor in the administration.
__________________
Eric Barnes 68 Classifieds Developer Please do not send me a private message asking for support. Instead use these open forums or our ticket system. Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | Twitter |
|
#8
|
|||
|
|||
|
Great it worked! Thanks!
__________________
Terje billigbolig.no V3.1.5b Developer |
|
#9
|
|||
|
|||
|
is there a way of adding search to the index page without buying developer?
|
|
#10
|
||||
|
||||
|
Buying maffo's search module? if you dont want featured listings on the front page just rename the search.php to index.php
Nick
__________________
Nick Bowers 68c v4.09 Developer |