Does anyone know I would go about making it where the Categories sidebox only displayed 20 categories, but had a link to click to display the rest of the categories?![]()
Does anyone know I would go about making it where the Categories sidebox only displayed 20 categories, but had a link to click to display the rest of the categories?![]()
You could make the rest of the categories subcategories of category 20, perhaps?
I'm doing it for a client... they are adamant that they didn't want to do it that way... I already suggested that one.
Aha, I figured my solution seemed too obvious
Though I don't see that doing it any other way would be any different to be honest...
Yeah... I agree... but you know how some people can be about things...
Oh, I know, sneak in a tiny fullstop on it's own as Category 20 and don't tell them, then add an EZ Page that links to the subcategories... you never know, they might fall for it...![]()
![]()
![]()
![]()
That was something I was thinking about... I'm not sure how to restrict the Categories sidebox to 20 categories though... I'm pretty sure he won't go for it anyway.
Probably tpl_index_categories.php would be the place to start. You would need a counter to tell how many categories had been output, and stop at 20. That is the easy part - next you would need a link/switch that would set a variable to disable the cutoff when clicked. It would need to go through the URL, so you would probably need a form submit...
There is a mod for users to choose how many products to display per page; that code could guide you.
I'm not making an argument here by any means, but I've been thinking about this now ever since you first replied to me. Unless you're explaining it badly what they want, the last category could simply be titled 'click here for more categories'
Sorry, but I just don't get what it is they're wanting really
I'd say your best recourse would be to simply tell them it's not possible - that's my twopence on it for what it's worth
From the way I'm understanding it... something like a javascript reveal kind of thing... only 20 categories shown, but then you click a link and the categories sidebox expands to show the remaining categories is what he's wanting.
Bookmarks