Advertisement:

Author Topic: sub sub categories  (Read 3930 times)

disposition

  • Newbie
  • *
  • Posts: 4
sub sub categories
« on: July 26, 2011, 12:34:43 am »
first off. Great work on the OSClass so far! I'm rather surprised to see its development speed.

fortunately, my small classifieds has also grown at, and if not an faster rate and I was wonder if it's possible to extend the breadcrumb style navi-bar to have multiple level of child categories to accommodate for better organization.

Thanks! 

_CONEJO

  • Administrator
  • Hero Member
  • *****
  • Posts: 4689
Re: sub sub categories
« Reply #1 on: July 26, 2011, 10:36:37 am »
Hi disposition,


Here we have a problem. OSClass could handle as many sub-levels as you want (sub-sub-sub-sub-category). The helpers can not. Helpers are functions to help people talk with OSClass (themes and plugins), so with a few functions you could display categories and sub categories without knowing much of PHP or working with variables directly. The problem is that we didn't find a way to make it easier if there're more than 2 level of categories, and trust me, it's no easy. So you could use as many levels as categories, but the theme will not show them correctly.


Besides that, I checked the breadcrumbs plugin code and it should work with multiple levels of categories, let's me check later, I will try it.


Anyway, we want to help you, if you could tell us wht do you want and explain it a little more, will try to help you!

Thanks!

disposition

  • Newbie
  • *
  • Posts: 4
Re: sub sub categories
« Reply #2 on: July 26, 2011, 01:06:45 pm »
man, the level of support with this project is really unheard of in my experience in the past open source oriented projects; what great developers we have here.

Being a programmer myself albeit not a web developer I see your concern with the problems, and I purpose we simply Loop the main Theme display code.

Current theme display goes like this on the front page
MAIN(which really isn't a category at all, let's name it 0 and call it the index) so the index is 0, so it'll display categories [1], and [2], and [2] being the sub-category of [1].
Now let's suppose the user clicks on a category on the 1 index. it'll load a new page that's similar to the front page, with the except now the index is incremented/changed to [1].
so it'll load categories [2], and possibly [3] if it exists, much like the current front page code, and if users click on [3] it can go further, and load more categories, much like the breadcrumb plug-in intended.


Now I have not looked at how osclass is designed so I'm not sure how hard this is to implant, but it's an idea.

Let me know!
and Thanks again for all your hardwork.

disposition

  • Newbie
  • *
  • Posts: 4
Re: sub sub categories
« Reply #3 on: August 01, 2011, 01:46:17 pm »
bump

GazOutEast

  • Newbie
  • *
  • Posts: 13
Re: sub sub categories
« Reply #4 on: August 09, 2011, 06:50:18 pm »
Unlimited categories depth is essential to any hierarchical application, without it the usability of osClass is very restricted.
As disposition wrote, step-looping is the simplest method for this.
How have other open source projects got past this hurdle - e,g. WordPress or osCommerce (OSC)

sidenote - your namespacing for osClass ( osc_ ) is going to cause massive problems where osClass and osCommerce are on the same domain name, let alone sharing a database.

disposition

  • Newbie
  • *
  • Posts: 4
Re: sub sub categories
« Reply #5 on: August 29, 2011, 08:30:14 pm »
bump

Juan Ramón

  • Osclass Developer
  • Hero Member
  • *****
  • Posts: 2382
Re: sub sub categories
« Reply #6 on: August 30, 2011, 01:00:39 pm »
For now, it's available only two levels: Category > Subcategory

We'll try to improve that but it's a critical part of OSClass and we don't change until we're sure everything is going to work smoothly and same as before.

greg

  • Newbie
  • *
  • Posts: 22
Re: sub sub categories
« Reply #7 on: September 08, 2012, 06:50:08 pm »
One year after this post , wharf is your position ?

Sub-sub catégories is a project for the 3.1??????

petrovicivan

  • Newbie
  • *
  • Posts: 2
Re: sub sub categories
« Reply #8 on: September 16, 2012, 01:50:24 am »
I'd love to see this feature, too

Go for it, guys :)