orestes |
|
---|---|
Hi.
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! orestes
|