What hierarchical model for menus and categories is used in CMS, for example, Joomla or WP?

Adjaceny or Nested sets model or something else?

I am interested in CMS like Joomla or WordPress, and how they work with menus, categories and other hierarchical data stored in db.

Thanks in advance.

+4
source share
2 answers

Joomla uses nested arrays for several things, including menu items and categories.

Wordpress seems to be using a rather unmanaged system, storing its menu items along with other things in its "terms" table. I can only find the β€œparent” field, so I assume that it simply stores the identifier of the parent element for modeling hierarchical menus. I did not work with Wordpress though.

+3
source

I work with wordpress. I find a hierarchical menu model in wordpress. It stores menus in db hierarchically. You can also find the parent menu using the wordpress function. In wordpress, I can find one of the bredcumb questions. If this is decided later, than the Wordpress menu is better than joomla.

+3
source

All Articles