On Wed, 5 Jan 2000, Ken Pooley wrote:

> I am working on a subsection of a site, a departmentpage which leads in 
> turn to a bunch of sub departments....I would like to have a title and use 
> the abstract to describe the department and then go to the subtopic and get 
> the list of articles in that sub topic. I had a few ideas on doing 
> this...one was to use the topic listings and the description as the 
> department listing and then call the articles up once I link on to the 
> department's listing....but I wasn't sure if that was what the topic fields 
> were intended for....

I can't fully follow this text but if you mean that you would want to do
<root topic>
  <subtopic>Department 1/description
    <article>...
    <article>...
    <article>...
    <article>...
  <subtopic>Department 2/description
    <article>...
    <article>...
    <article>...

than that would be fine. Topic trees are very multipurpose; I've used
them for content, but I'm also going to use them for forum-type discussions,
calendars and bulletin boards. I'm sure others can come up with even
more purposes.

> The other approach (a better way I think) but one I am unsure of how to do 
> without making the query really complicated was to have all of the 
> department titles and abstracts be articles in a parent topic with the 
> department content being subtopics, then when linked going to the subpages 
> and calling the topics there...the only problem is that I can't figure out 
> how to call a parent topic and not get all of the childeren as well.......

Call a parent topic?

> I 
> need to idot proof it as well so that staff members can create articles and 
> not need to know to set flags or artibutes in the article....(at least that 
> would be ideal...)

That'd need some customization, or even a custom admin site.

> The other thing I was curious about was how to get the author of an 
> article, again with out incuring a lot of scripting overhead, I see it at 
> the bottom of the midgard main site but I only found an numercial reference 
> to the author in the article table...it seems like it would be adding a lot 
> to jump over to the person field and match up that membership based number 
> with the first and last name.....

Two ways to get it: in the mgd_list_topic_articles you'll get the
all the author info automatically in the fetched object. Otherwise
you can do
$author = mgd_get_person($article->author) and you'll have your info.

mgd_list_topic_articles is in the function reference, and I'll see
to it that mgd_get_person gets there tonight.

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