From: Verdon V. <ve...@ve...> - 2005-10-05 10:33:56
|
Thanks Tony :) I was aware of your hacks, but didn't think to look there. Doh ! verdon On 5-Oct-05, at 1:33 AM, Ton en Anja Oosterhoff wrote: > Hi verdon, > I did the same search when making my category hacks for blockmaker and > menuman. > You can download them from www.oosterhoff.nu > For menuman the things you're looking for are in menuactions.php; for > blockmaker it's in runtime.php > > Regards, > Tony. > > -----Oorspronkelijk bericht----- > Van: php...@li... > [mailto:php...@li...] Namens > Verdon > Vaillancourt > Verzonden: woensdag 5 oktober 2005 1:23 > Aan: php...@li... > Onderwerp: [Phpwebsite-developers] Detecting categories > > hi all :) > > Has anyone worked out a simple/reliable method to detect the > category(s) of whatever content is currently being displayed in your > phpws site? > > I've come up with a few hacks that work in some mods and not in others, > and I've spent hours looking at the $_SESSION and $GLOBALS arrays for > something reliable, as well as the fatcat class files, but I haven't > been able to work out a bullet-proof method yet. All I'm really trying > to achieve is a way to capture the id of any fatcat categories the > curent content may belong to, in my theme.php file, so I can use this > variable. > > So far, I've been poking at things like this, just to see what'll > happen, but the results are pretty inconsistant... > > $cur_mod = $GLOBALS["core"]->requestModule; > $my_cats = $_SESSION["OBJ_fatcat"]->listModuleElements($cur_mod); > > foreach ($my_cats as $my_cat_title){ > $cat_title = $my_cat_title["title"]; > $cat_id = $_SESSION["OBJ_fatcat"]->getCatId($cat_title); > echo $cat_id . '<br />'; > echo $cat_title . '<br />'; > } > > Does anyone have any better ideas? > > Thanks, > verdon > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Power Architecture Resource Center: Free content, downloads, > discussions, > and more. http://solutions.newsforge.com/ibmarch.tmpl > _______________________________________________ > Phpwebsite-developers mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phpwebsite-developers > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Power Architecture Resource Center: Free content, downloads, > discussions, > and more. http://solutions.newsforge.com/ibmarch.tmpl > _______________________________________________ > Phpwebsite-developers mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phpwebsite-developers > > |