> I am creating a new company directory which will hopefully be a little more
> dynamic than our current one. I have planned to use the person records to
> store as much information about each person as possible, but in some cases I
> need to use the homepage field to specify a separate page for additional
> information. As I understand it, the homepage field contains a URL that
> points to another web page. I'm wondering if it is possible to have it point
> to an article.

The homepage field is actually a free-form text field. There's no
obligation to use it for an URL.

> own information. I am currently using the extra (description) field to store
> the person's title, as there is no "title" field (Could one be added?),
> which is why I need the additional page for the biography.

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.

> How can I structure the homepage URL so that it references the correct
> biography, preferably by name.html instead of id.html?

Use an active page and use the get_by_name routine instead of the
get (which gets by ID).

Emile


--
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