Support Forums

Old 05-31-2007, 11:55 AM   #1
Member
 
Join Date: May 2007
Posts: 37
Rep Power: 8
abkeller is on a distinguished road
Default Adding extra field to search.php...

My question is twofold;

1) how do you add an extra field you've created to the search.php page? Example; I want to change the "Select a category" search field to use the extra field that I've created (Manufacturer). I see the call in the search.tpl.php here;

<select name="type" id="select" onChange="displaySec(this);">
<option value=''>{$smarty.const.LANG_SEARCH_ALLCAT}</option>
{foreach from=$getcats item=cat}

<option value="{$cat.id}"{if $type==$cat.id} SELECTED{/if}>{$cat.name}</option>
{/foreach}
</select>

I'm not sure what the extra field label is. I look at the "Extra Fields" control panel and the only field ID I see is a number (11). What is the field ID of the new (extra) field I've created?

2) In creating the extra field I've selected the "Drop Down Menu" type, but I need to add way more selections than have been provided with empty fields in the admin control panel. If that sounds confusing, here it is another way; My custom field, "Manufacturer", needs to have up to 200 options for users to select. How do I add more to this list?
__________________
private signature
68Classifieds - Developer Edition, v.3.1.7
abkeller is offline   Reply With Quote
Old 06-01-2007, 04:22 AM   #2
Senior Member
 
midi510's Avatar
 
Join Date: Mar 2007
Location: Mammoth Lakes, Ca
Posts: 135
Rep Power: 12
midi510 is a jewel in the rough
Default

If you select a category on the search page, then whatever extra fields were bound to that category and checked as searchable in admin will "magically " appear. Then you can enter the parameters for the field(s) and process the search. That's how mine works.
__________________
Kirk
V3.1.7 Developer
May you & your loved ones be blessed with
Grace, Peace, Forgiveness, Love, Wisdom, & Joy
midi510 is offline   Reply With Quote
Old 06-04-2007, 03:07 PM   #3
Member
 
Join Date: May 2007
Posts: 37
Rep Power: 8
abkeller is on a distinguished road
Default Doh!! Got the first part...

Thanks, Kirk for the answering my first question. I had somehow screwed up
search.tpl.php and this feature was no longer working. I was wondering why those extra fields were not displaying. I just restored the original search.tpl.php file and see that it is working again.

Thanks.
__________________
private signature
68Classifieds - Developer Edition, v.3.1.7
abkeller is offline   Reply With Quote
Old 06-04-2007, 03:11 PM   #4
Member
 
Join Date: May 2007
Posts: 37
Rep Power: 8
abkeller is on a distinguished road
Default Answered my own question...

As for the second part of my question I've already found the answer.

Even though a limited number of fields is displayed for adding items to the parent pull-down menu for an extra field, all you have to do is submit your updates after filling in all the fields. When you go back in to modify the list items for that extra field NEW, empty fields appear in control panel.

I have successfully added over 500 different manufacturers to my pull-down menu for the Manufacturer field I've created.
__________________
private signature
68Classifieds - Developer Edition, v.3.1.7
abkeller is offline   Reply With Quote
Old 06-05-2007, 12:15 AM   #5
Senior Member
 
midi510's Avatar
 
Join Date: Mar 2007
Location: Mammoth Lakes, Ca
Posts: 135
Rep Power: 12
midi510 is a jewel in the rough
Default

Wow, that's a lot of mfgrs. to scroll through. Did you think about using parent-child drop downs? Glad to see things are working out.
__________________
Kirk
V3.1.7 Developer
May you & your loved ones be blessed with
Grace, Peace, Forgiveness, Love, Wisdom, & Joy
midi510 is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
listing extra field value when it is an array? Mike-N-Tosh v3.1 Modules & Modifications 13 04-21-2007 09:31 AM
Adding extra field to subcategories.tpl HotAir v3.1 Questions & Support 14 03-03-2007 10:56 PM
Adding an Extra Field that is clickable sporthorsebreeder HTML, CSS, and Design Help 12 09-04-2006 02:03 AM
Displaying extra field in Search and category listings Bucketman v3.0 Questions & Support 3 04-26-2006 09:48 AM


All times are GMT -4. The time now is 04:44 AM.


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