Hola,
FatCat has gone under a number of needed fixes. I want to point out a few
things.
When you click on a category name under "what's related" it will take you
to the category information screen. It will also list all the elements of
the module you came from.
If you want to control what the list looks like, look at the following
examples:
Under the conf directory in calendar, I create a fatcat.php file.
http://res1.stddev.appstate.edu/horde/chora/co.php/phpws_mods/calendar/conf/fatcat.php?r=1.1
It contains the name of the class and the name of the method.
Fatcat will then call them. It does NOT create an instance of the class.
Instead it calls: myClass::myMethod($idList);
Now go here:
http://res1.stddev.appstate.edu/horde/chora/co.php/phpws_mods/calendar/class/Calendar.php?r=1.24
At the bottom of the file is the listing method. The module method will
always receive an array of module id numbers. For calendar, I just built
the events for these ids and ran them through my custom template. Then I
returned it.
That is all there is to it. If you do not have a fatcat.php file, FatCat
just makes a standard element listing similiar to What's Related.
One more thing, make use of Steven's paginate function when possible. PHP
will often barf if you try to force display of several (as in over 100)
intricate elements (as in forms, table rows, etc.). I found that out when
making my first event list.
I will get more fixes missing in FatCat tomorrow.
Matthew McNaney
Internet Systems Architect
Electronic Student Services
Appalachian State University
Phone: 828-262-6493
phpwebsite.appstate.edu
ess.appstate.edu
|