On Wed, 2004-08-25 at 04:59, Daniel Winter wrote:
> This has me very confused... I have a list which is being displayed, each
> item has a check box, and there's the view/edit/hide/show/delete drop down
> box... but how is this supposed to be used? is it so you can work with
> multple items? I just want it to work like announcements list (I know it
> doesn't use item/manager) with an actions column and links for each action.
> Can manager do this or am I supposed to to it manually with the templates?
Daniel,
The announcement module uses PHPWS_Item and PHPWS_List to make the
list you are describing. Take a look at the announcement module's code
as an example of how to use it. In the file
mod/announce/class/AnnouncementManager.php the function
listAnnouncements() has the code which defines the list. And in
mod/announce/class/Announcement.php there are a series of
getListVARNAME() functions which return the values to be shown in the
specific columns.
Files used:
http://res1.stddev/horde/chora/co.php/phpwebsite/core/Item.php?login=2&r=1.35
http://res1.stddev/horde/chora/co.php/phpwebsite/core/List.php?login=2&r=1.18
http://res1.stddev/horde/chora/co.php/announce/class/AnnouncementManager.php?login=2&r=1.39
http://res1.stddev/horde/chora/co.php/announce/class/Announcement.php?login=2&r=1.76
--
Steven Levin
Computer Systems Admin I
Electronic Student Services
Appalachian State University
http://phpwebsite.appstate.edu
|