Category not working as intended

15 posts by 2 authors in: Forums > CMS Builder
Last Post: February 3, 2009   (RSS)

Wow, i REALLY didn't mean to make this one difficult. Okay, that made the "Square Table" go away from the Main Category List, however, when you click on tables, nothing appears at all?!? However, truth be known, it has never appeared under the Tables category as it should.

I'm completely stymied on this one...

Re: [misery217] Category not working as intended

By Dave - February 2, 2009

The trick is to break it down page by page and figure out what you want each page to do. Then knock off the items (or requirements) one by one.

My guess is you want that next page to show all the records that are children of the selected record number (which is in the url). Your code probably will look like this:

$parentNum = getNumberFromEndOfUrl();
...
"where" => " parentNum = '$parentNum' ",

You need to put the parentNum = part a little higher above the getRecords() call though.

Hope that helps!
Dave Edis - Senior Developer
interactivetools.com

Re: [misery217] Category not working as intended

Yes, it's killing me.

there are no "sub-categories" being created, regardless of what i try in the Admin.... I've been a huge fan right up until this moment...

Re: [misery217] Category not working as intended

By Dave - February 3, 2009

Hi misery217,

If you figure out how you want it to work (how many pages, what each page should display, etc) I can point you in the right direction.

Another option would be to get some consulting time and have one of our guys either do it directly or train you on it. The program doesn't create this layout of pages that you need automatically so it takes some extra work to figure it all out.

One thing to check would be that you're not filtering with 'where' => " depth = 0 ", on your subcategory pages because that would only show root categories.

Hope that helps!
Dave Edis - Senior Developer
interactivetools.com