|
|
#1 |
|
Member
Join Date: May 2007
Posts: 37
Rep Power: 8 ![]() |
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 |
|
|
|
|
|
#2 |
|
Senior Member
Join Date: Mar 2007
Location: Mammoth Lakes, Ca
Posts: 135
Rep Power: 12 ![]() |
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 withGrace, Peace, Forgiveness, Love, Wisdom, & Joy |
|
|
|
|
|
#3 |
|
Member
Join Date: May 2007
Posts: 37
Rep Power: 8 ![]() |
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 |
|
|
|
|
|
#4 |
|
Member
Join Date: May 2007
Posts: 37
Rep Power: 8 ![]() |
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 |
|
|
|
|
|
#5 |
|
Senior Member
Join Date: Mar 2007
Location: Mammoth Lakes, Ca
Posts: 135
Rep Power: 12 ![]() |
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 withGrace, Peace, Forgiveness, Love, Wisdom, & Joy |
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
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 |