igetu2c Posted August 5, 2004 Posted August 5, 2004 OCS MS2 I am using the Keywords, Category List, and Search submit elements from the advanced_search.php to but a custom search bar in the header. This is the format I am looking for: Search: XXXXXXXXXX in XXXXXXXXX Submit (Keyword) (Top level Category list only) (Hidden input field for search all sub categories) My question is. When I click the drop down menu that list the categories and sub categories to search in I only want it to list the TOP level of each category and not any of the sub-categories plus when the user submits a keyword it will search all the subcategories as the the default hidden input. Thank You Sean
igetu2c Posted August 5, 2004 Author Posted August 5, 2004 Please? Is there a better place to post questions for OSC? I never get answers here. Sean
Guest Posted August 5, 2004 Posted August 5, 2004 Please? Is there a better place to post questions for OSC? I never get answers here. Sean Perhaps b/c you seem to be asking a question that requires someone write code for you for free. Something like this will get you the pulldown for all categories and search in subs by default: <?php echo tep_draw_pull_down_menu('categories_id', tep_get_categories(array(array('id' => '', 'text' => TEXT_ALL_CATEGORIES)))) . tep_draw_hidden_field('inc_subcat', '1', true); ?> If you don't want subs displayed, that's something you will either have to do yourself, pay someone to do it for you or keep your fingers crossed and hope someone here will put it together for you for nothing.
igetu2c Posted August 5, 2004 Author Posted August 5, 2004 Yea I know I remember the days on here when people would help you out just cause it others can use that info if needed later on, But after a long OSC vacation and forgetting my old uid I am shocked at how many topics go unanswered. I do appreciate you help though because thats about where I am with it, just getting rid of those pesky sub category?s is all I am left looking for.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.