Jump to content



Latest News: (loading..)

- - - - -

Drop down box for Categories


This topic has been archived. This means that you cannot reply to this topic.
5 replies to this topic

#1   Funzilla

Funzilla
  • Members
  • 14 posts

Posted 17 September 2002 - 08:15 PM

Can anyone tell me how to make a drop down box for categories ?  I tried the contribution that's supposed to do this, but it doesn't work.  Any ideas ?


Thanks

#2   hobbzilla

hobbzilla
  • Members
  • 827 posts

Posted 17 September 2002 - 08:50 PM

Hey the contrib works great for me!!

What is it doing for you?

are you getting "  "

Before each sub-category?  If so, go and edit the function tep_get_categories located in /catalog/includes/functions/general.php.

Around line 485 replace    with a - or ~ or something.

(this is due to the fact that the function tep_draw_pull_down_menu in html_output.php calls "htmlspecialchars" before output (which is good) except in the case you want   and NOT   (which does not mean the same thing -- obviously).

#3   interfaSys

interfaSys
  • Members
  • 54 posts

Posted 17 September 2002 - 09:01 PM

Can you tell me if you tried my contrib and which problem you encountered?
Olivier
interfaSys sàrl
-----------------------
You'll love to use our solutions!
Rich Internet Applications and Usability

#4   hobbzilla

hobbzilla
  • Members
  • 827 posts

Posted 17 September 2002 - 09:07 PM

Weirdlab,

I have the latest CVS 2.2 version.  If you use the allcategoriesdopdown.php and replace it in column_left.php,

Your drop down will be filled like this:

Make a choice
Hardware
  CDROM Drives
  Graphics Cards
  Keyboards
  Memory
  Mice
  Monitors
  Printers
  Speakers
Software ...


I mentioned the fix above.

#5   interfaSys

interfaSys
  • Members
  • 54 posts

Posted 17 September 2002 - 09:15 PM

I was talking to Funzilla ;)

I've answered about this issue in the old forum.

Your fix is all right while we wait for the official fix (since the official tep_draw_pull_down_menu is broken right now)
Olivier
interfaSys sàrl
-----------------------
You'll love to use our solutions!
Rich Internet Applications and Usability

#6   Funzilla

Funzilla
  • Members
  • 14 posts

Posted 18 September 2002 - 12:24 AM

hobzila,

I was using the contrib submitted by Brian Kiggin. After reading your reply, and of course switching to allcategoriesdropdown, everything worked GREAT!!!!!!!!!!!!!!!   Thanks a bunch!!!!!  Thanks to you too Weirdlab. :D  :D