From: Ryan R. <to...@gm...> - 2004-11-01 19:19:37
|
Ton, What you describe is something I've been looking at in a more general case: Triggering (for lack of a better term). Basically, be able to display a block (menu, login, other) when a certain set of criteria are met. Maybe when a certain module is being used, or simply on a page-by-page/article-by-article basis. While I've been deep in the bowels of server building for the last few months, I haven't been able to keep up with what has been going on in the IRC channel, but at one time there was a little discussion regarding this. Just not sure whether the dev team followed up on it any. So while I can't offer you any direct suggestions, I did want to let you know that you're not alone in wanting that functionality. Ryan On Sat, 30 Oct 2004 10:08:58 +0200, Ton Oosterhoff <ton...@he...> wrote: > =20 > =20 >=20 > I am almost finished extending the Menuman module with category capabilit= y.=20 >=20 > The last obstacle is the following.=20 >=20 > I want to show a menu if the menu's category equals the category of one o= f > the other modules that are displayed. So I have to detect which categorie= s > are currently displayed.=20 >=20 > The problem is how to code this in PHP.=20 >=20 > I thought the following method was the shortest:=20 >=20 > - loop through mod_fatcat_elements;=20 >=20 > - extract module_id, module_title and cat_id;=20 >=20 > - check if module title is displayed with " if (isset($_REQUEST['module'= ]) > && $_REQUEST['module']=3D=3Dmodule_title) "=20 >=20 > So far so good, now I know if a module is displayed, but how can I check > that it is displayed with module_id?=20 >=20 > For Pagemaster this would be with $_REQUEST['PAGE_id'], but is there some > generic expression I can use ?=20 >=20 > Something like =E2=80=A6. && $_REQUEST['module_id']=3D=3Dmodule_id?=20 >=20 > Some suggestions?=20 >=20 > Or maybe an other approach?=20 >=20 > Thx in advance.=20 >=20 > Ton Oosterhoff.=20 >=20 > |