Emile spake:
> Use parameters. You can do
> $person = mgd_get_person(...);
> $person->parameter('biography', 'title', 'blabla');
> $person->parameter('biography', 'url', 'http://www.foo.com/bar/');
>
> You can retrieve these values at any time by calling
> $person->parameter('biography', 'title') or
> $person->parameter('biography', 'url'), plust after refetching the
> object they'll be available as $person->biography_title and
> $person->biography_url.
>
> For person records specifially you can also use 'preferences', which
> are person-specialized parameters.

That would have been wonderful but for one problem, the user preferences are
only accessible to that user and to admin. Since this will be a general
listing which will be accessed by anyone, this option will not work.

I have figured out a bit of a work around. I used the topic field to point
to a topic created for each sales person. The topic contains their
biography. When I retrieve their person record, I read the topic and create
a link to it. The fun part was that the biography also includes their
contact information again, and the person record is not available once we
jump to the topic information. I resolved this by changing the score for the
topic to match their user number. Then I use the score to retrieve their
person record again and present their contact info in the biography. Helps
keep the info a little more dynamic.

It's not a perfect solution, but it is one that works for now, and could be
easily changed if a better method makes itself known to me in the future.

Thanks for the help.

Dion

*************************************************************************
*  Dion Vansevenant                                                     *
*  Systems & Technology Analyst            [EMAIL PROTECTED]  *
*  RoweCom Canada                                  Tel: (519) 472-1005  *
*  P.O. Box 2382                                   Fax: (519) 472-1072  *
*  London, ON  N6A 5A7                                  www.rowecom.ca  *
*  Canada                                                               *
*************************************************************************


--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org

To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]

Reply via email to