On Wed, 29 Dec 1999, Ken Pooley wrote:
> >>They're included in every page since they're part of midgard-root.php3
>
> So I shouldn't want to mess with them...I need to go read the function
> section...that probably is where I will find what I want to know about
There's no way to 'mess' with them. Look in midgard-root.php3:
the sections are used, but not defined. You can override them
in the admin site and put anything you like in them.
Traditionally, code-compat is used for backwards-compatibility
code, code-global for functionality you want in every page, and
code-init to initialize the templates. But you can use them as you
like.
> >>What fields?
>
> Type
> IDs
> Extra 1
> Extra 2
> Extra 3
>
> I am guessing that these can be used for filters but I am trying to figure
> out to start...I am also guessing that they need to be built into the PHP
> and the query....I am also curious about what the score on the article
> admin does and how to use the approved and locked fields....
Type can be used as a filter with mgd_list_topic_articles. The function
reference axplains it I think. I have no idea what the ids are, either.
The extra fields have no midgard-specific purpose, you can use them
as you like.
The scoring can be used in the _list_ functions to specify in what
order you want your articles or topics returned when you fetch them.
The approved and locked fields can be set by mgd_article_toggle_lock
and mgd_approve_article. These fields can be used for workflow management
(i.e. only displaying articles that are approved, not allowing updates
if an article is locked) but you'll have to use PHP code to do anything
with them. Updating a locked article is not prohibited by Midgard,
but you can build an admin site that enforces it.
Bye,
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]