KASR Posted May 13, 2003 Posted May 13, 2003 I have a dropdown as part of the Search and Dropdown contribution, but I cannot figure out where to EDIT or ADD the text "Select Studio" so it will appear as the default inside the dropdown box...any ideas? Here's the code: //begin cut // Display a drop-down $select_box = '<select name="manufacturers_id" onChange="this.form.submit();" size="' . MAX_MANUFACTURERS_LIST . '" style="width: 100%">'; if (MAX_MANUFACTURERS_LIST < 2) { $select_box .= '<option value="">' . PULL_DOWN_DEFAULT . '</option>'; } while ($manufacturers_values = tep_db_fetch_array($manufacturers_query)) { $select_box .= '<option value="' . $manufacturers_values['manufacturers_id'] . '"'; if ($HTTP_GET_VARS['manufacturers_id'] == $manufacturers_values['manufacturers_id']) $select_box .= ' SELECTED'; $select_box .= '>' . substr($manufacturers_values['manufacturers_name'], 0, MAX_DISPLAY_MANUFACTURER_NAME_LEN) . '</option>'; } $select_box .= "</select>"; $select_box .= tep_hide_session_id(); $info_box_contents = array(); $info_box_contents[] = array('form' => '<form name="manufacturers" method="get" action="' . tep_href_link(FILENAME_DEFAULT, '', 'NONSSL', false) . '">', 'align' => 'left', 'text' => $select_box); } new infoBox($info_box_contents); ?> thanks. KASR Quote
Guest Posted May 13, 2003 Posted May 13, 2003 I'm not familiar with the contribution. But logically thinking, that would be in the language file, either english.php or the specific page language file. Look for PULL_DOWN_DEFAULT Good Luck. -R Quote
loxly Posted May 13, 2003 Posted May 13, 2003 Does it pull the categories or the manufacturers info for the dropdown? You can set what you can both in languages/english.php, I think. The titles of the boxes are all defined in one of the language files. d Quote [no external urls in signatures please, kthanks]
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.