View Full Version : click on legend to show events in that category
hippobean
04-29-2006, 04:15 PM
I like to be able to click on a category on the legend to show the events for that category in list mode.
I'm assuming I need to change legend.php to add the link to a page that has the $LIST=1 and $SHOWCAT= x, passing the x to it or something like that.
Can you tell me how that can be done?
Thanks.
hi there hippobean!
did you ever succeed in making links from the category legend? if so, I would very much like to know how you did it!
Brian
08-08-2006, 09:18 AM
You can create links using the showCat variable (see instructions).
could you maybe give me an example of how to do this in legend.php? I know about the showCat variable but I don't understand how I can make links of the legend-items, because they are generated with php...
Brian
08-08-2006, 10:14 AM
You really have two options. You can add the legend to your page then copy the HTML for it from the source of the page and add it to the page where you want it to appear, then edit the table/text and add your own showCat links.
The second option is to edit the legend.php plugin code itself, but you'll need a good understanding of PHP to do that. :)
vBulletin® v3.8.4, Copyright ©2000-2013, Jelsoft Enterprises Ltd.