Support Forums

Search with multi extrafields

This is a discussion on Search with multi extrafields within the Technical Support forums, part of the Technical Support Forums category; Hi, I would like to ask which is the best way to build a search function with a lot of ...


Go Back   68 Classifieds Forums > Technical Support Forums > Technical Support

This topic is resolved.

If you have a similar issue that this thread does not address, open a new related support topic.

 
Thread Tools Display Modes
Old 06-28-2009, 12:16 AM   #1
Customer
 
Join Date: Jun 2009
Posts: 127
Rep Power: 9
pipelin is on a distinguished road
Lightbulb Search with multi extrafields

Hi,

I would like to ask which is the best way to build a search function with a lot of extra fields. I use a Custom Categories Module for my category Cars and I don't have subcategories. I want use a a search like show in the attachment.

Thank you for your help.
Attached Images
File Type: png ScreenShot.png (31.2 KB, 47 views)
pipelin is offline  
Old 06-28-2009, 07:16 AM   #2
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 2,946
Rep Power: 72
seymourjames is a jewel in the rough
Default

You can modify your css style sheet relating to the search.tpl file in your template folder to make the type of form you want for search.php. There are lots of examples on the internet on what you can do and how you would do it.

You will also need to think carefully about how you set up your extra fields (what type of format).
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68 Classifieds
seymourjames is offline  
Old 06-28-2009, 10:47 AM   #3
Customer
 
Join Date: Jun 2009
Posts: 127
Rep Power: 9
pipelin is on a distinguished road
Default

Quote:
Originally Posted by seymourjames
You can modify your css style sheet relating to the search.tpl file in your template folder to make the type of form you want for search.php. There are lots of examples on the internet on what you can do and how you would do it.

You will also need to think carefully about how you set up your extra fields (what type of format).
Hi seymourjames,

Thanks for you quick response, I like that.

Can you give me a little advice about what type of format and how set up those extrafield.

Thanks.
pipelin is offline  
Old 06-28-2009, 10:51 AM   #4
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 2,946
Rep Power: 72
seymourjames is a jewel in the rough
Default

How long is a piece of string as they say. The best thing to do is place your extrafields on and then start to style the form. Use Firefox and the free Web developer plugin; You can then experiment very quickly without changing the actual css file (you can do it in the browser itself to see how it looks). It also allows you to outline you css elements on the page making it quick to identify them.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68 Classifieds
seymourjames is offline  
Old 06-28-2009, 12:19 PM   #5
Customer
 
Join Date: Jun 2009
Posts: 127
Rep Power: 9
pipelin is on a distinguished road
Default

I am sorry seymourjames, I don't get that. Can you give more details, please?
pipelin is offline  
Old 06-28-2009, 05:13 PM   #6
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 2,946
Rep Power: 72
seymourjames is a jewel in the rough
Default

Your question is so wide that there are just too many possibilities to begin with any detailed assistance. Basically, you need to be familiar with css, smarty and xhtml if you wish to start reformatting the default search page. You don't need to be an expert but you need to have some skill. In other words, modify the code. Start by getting it all set up in the default style. Then start to change the look of it by modifying the css, etc.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68 Classifieds
seymourjames is offline  
Old 06-29-2009, 04:00 PM   #7
Customer
 
Join Date: Jun 2009
Posts: 127
Rep Power: 9
pipelin is on a distinguished road
Default

I'm not sure how call the extrafields. Do you think this way can work:

$row['extrafield2'] = $this->getExtraField($row['id'], 2);

$row['extrafield6'] = $this->getExtraField($row['id'], 6);
pipelin is offline  
Old 06-29-2009, 04:22 PM   #8
Customer
 
Join Date: Jun 2009
Posts: 127
Rep Power: 9
pipelin is on a distinguished road
Default

Because I have Parents drop down list and child drop down list I don't sure how call the extrafilds. I found this code in the forum:

{foreach from=$extrafields item=extras}
{if $extras.fID==4}
{foreach key=key item=item from=$extras.value}
{assign var="name" value="$item"}
{/foreach}
{/if}
{/foreach}

I already reed the manual and all about extrafields, but I don't get know how call the extrafields.

I appreciate some help.
pipelin is offline  
Old 06-29-2009, 07:08 PM   #9
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 2,946
Rep Power: 72
seymourjames is a jewel in the rough
Default

Still not sure what you are really trying to do but there is a plugin for retrieving extrafields in your plugins directory. Generally, search works by selecting a category and then ajax is used to display the extrafields for that category. The reason is that extrafields can be different for different categories.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68 Classifieds
seymourjames is offline  
Old 06-29-2009, 08:03 PM   #10
Customer
 
Join Date: Jun 2009
Posts: 127
Rep Power: 9
pipelin is on a distinguished road
Default

All this only for one category "Cars". How you see in this link http://www.68classifieds.com/forums/...screenshot.png, the category is already selected. Is like yahoo autos style Used Cars For Sale In Canton, GA - Yahoo! Autos. The reason, I don't want to do a deep of subcategories in this category.
I already checked the plugin, but I'm not sure if is only to display the information.
pipelin is offline  
Closed Thread

Tags
multi extra fields seaach

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Extrafields in showlisting.tpl kocicart Technical Support 1 02-08-2009 03:50 PM
extrafields search form seymourjames Technical Support 1 09-29-2008 09:58 AM
extrafields seymourjames Technical Support 4 05-22-2008 08:43 PM


All times are GMT -4. The time now is 05:36 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0