How to get the actual category
Posted: Thu 28. Jun 2007, 08:31
I found in the forum the way how to use pagetitle etc.
http://www.phpwcms.de/forum/viewtopic.php?t=13841
So with $GLOBALS['content']["cat_name"]; it's possible to get the category. Fine. However I try to get the name of the category above the actual level.
Example:
Level0->Level1->Level2->Level3
I'm on Level3 and try to get the name of Level2.
Looking into the db I see that I could use table phpwcms_articlecat since there is the field acat_struct which actually contains the parent category but I'm not sure how to access this data - probably there is a simple solution?
(As you can see I just start with MySQL and PHP and phpwcms
Cheers Beppo
http://www.phpwcms.de/forum/viewtopic.php?t=13841
So with $GLOBALS['content']["cat_name"]; it's possible to get the category. Fine. However I try to get the name of the category above the actual level.
Example:
Level0->Level1->Level2->Level3
I'm on Level3 and try to get the name of Level2.
Looking into the db I see that I could use table phpwcms_articlecat since there is the field acat_struct which actually contains the parent category but I'm not sure how to access this data - probably there is a simple solution?
(As you can see I just start with MySQL and PHP and phpwcms
Cheers Beppo