From: Ton O. <ton...@he...> - 2004-10-30 08:08:55
|
I am almost finished extending the Menuman module with category capability. The last obstacle is the following. I want to show a menu if the menu's category equals the category of one of the other modules that are displayed. So I have to detect which categories are currently displayed. The problem is how to code this in PHP. I thought the following method was the shortest: - loop through mod_fatcat_elements; - extract module_id, module_title and cat_id; - check if module title is displayed with " if (isset($_REQUEST['module']) && $_REQUEST['module']==module_title) " So far so good, now I know if a module is displayed, but how can I check that it is displayed with module_id? For Pagemaster this would be with $_REQUEST['PAGE_id'], but is there some generic expression I can use ? Something like .. && $_REQUEST['module_id']==module_id? Some suggestions? Or maybe an other approach? Thx in advance. Ton Oosterhoff. |