| Show top level category in dropdown when (user) uploads new product?
At the stage of:
uploadproduct.php?cat=myprod
The drop down box does not seem to contain any Top Level Directories that are set to not contain products (just category headers)
Ie....
CARS
ford
honda
toyota
BIKES
schwinn
gt
specialized
would become:
ford
honda
toyota
schwinn
gt
specialized
... in the drop down selection list.
I sort of understand why you did this - to prevent people from selecting a category header? You might get around this by:
A) Making it stand out as a header...
>>> CARS
ford
honda
toyota
>>> BIKES
schwinn
gt
specialized
B) erroring and returning them to the screen to try again if the select a category header.
C) Get messy and play with javascript.
Make the first or last option:
>>> PLEASE DO NOT SELECT CATEGORY HEADERS
Then if they select anything starting with a >>>, then you would flip it to the message above. (AND error is if they still persisted of course)
Without the category breaks, the list is probably quite jumbled for some people.
The way you did it in classifieds is kind of bad too... long & deep category lists make for a very long drop down box.
LEVEL 1 IS LONG -> LEVEL 2 IS A LITTLE LONGER -> LEVEL 3 IS OUT OF CONTROL -> LEVEL 4 MAKES THIS UNBEARABLE.
Most people probably wont go more than a couple levels deep... but still, doing it that was is asking for ugliness at smaller resolutions (like 800x600 or even 1024x768 if the bar is too long)
Last edited by Jeremy; November 21st, 2005 at 06:04 PM.
|