cotonti.com : Question about page categories https://www.cotonti.com Son konu mesajları Cotonti en Thu, 29 Jan 2026 22:51:08 -0000 orestes Per, 25 Haz 2009 15:34:37 -0000 Lombi
Also you can look at how this is done in the news plugin, where it's been working like that since day one.]]>
Çrş, 24 Haz 2009 22:32:13 -0000
orestes
When selecting the pages I found that the category in the sed_structure table is page_cat, the alphanumeric code ( I think this is the way since LDU times...).

Imagine that you have the news category (path 1) and the subcats "national" (code 1.1) and "international" (code 1.2). If I want to select all the news, I must do the selection using the "national" and "international" text. Ok, I can name the subcats as "news_national" and "news_international" and do the select as page_cat like 'news%', but this is not the right way of doing the things as the web admin can name the categories freely.

Wouldn´t it be better to have the pages categories structured like parent_cat and cat_path, being the later an optional field, filled only if the page is from a subcategory? This manner you can select all the pages from a category and related subcategories.

Or...

Does exist a method to have selectable categories using the parent category code?

Regards!]]>
Çrş, 24 Haz 2009 22:25:12 -0000