Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6372731
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T01:16:28+00:00 2026-05-25T01:16:28+00:00

I have a question that might seem simple, but yet I was unable to

  • 0

I have a question that might seem simple, but yet I was unable to find the answer. Unlike articles, which are stored in table jos_content, categories in table jos_categories lack any column named ordering or any other that would have the desired information stored. I also tried to find anything similar in the jos_assets table, but it did not help either.

I am hacking the content component a little and I need to get my child categories ordered by the ordering when calling $parent->getChildren() or just find the ordering column so I can create my own query even though it’s not clean, I just need to get it working ASAP.

So where can I find category ordering or how do I force getChildren method to return ordered results?

Thanks in advance, Elwhis

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T01:16:28+00:00Added an answer on May 25, 2026 at 1:16 am

    In Joomla categorises’ order is stored in table “jos_categories” as hierarchical tree structure with a set of linked nodes. Columns used to set order are: “parent_id“, “lft“, “rgt” and “level“.

    Assets and menu items are stored in the same way.

    You can read more about “Tree traversal” on wiki

    Edit:
    From Joomla 1.6 to load a specific category and all its children in a JCategoryNode object use:

    jimport( 'joomla.application.categories' );
    
    $extension = 'Content'; // com_content
    $options['countItems'] = true;
    $categoryId = 0;
    
    $categories = JCategories::getInstance($extension, $options);
    $categories->get($categoryId);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The question might seem a bit confusing but I have an if statement that
I have a question that might seem basic but can't figure it out. Basic
This question might seem strange but I have been searching for an answer for
This might seem like a simple question. But I have been looking for an
I have a question that might seem fairly simple (of course if you know
Beginner level question Scenario: Have simple string cocantation tool, that I might expand later
This might be a way to simple question, but I seem to miss the
this might be a simple question but i can't seem to figure it out.
This may seem a common question but I googled to find the right answer
This might seem like a very simple question, but I am struggling with it.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.