I was thinking of some thing a little more simple...at least from the
outside and elegant, at some point I will figure it out and be able to
show/explain it but I need to come up with a solution ...but what you are
saying will work...in fact once you said that I noticed that the main
midgard site uses this strategy or something close to it...say on the site
links to the right where they go to "http.../topic/73.html"... the demo site
doesn't do that,it has "hardwired" subpages, how does it work at
www.midgard-project.org ....the problem I still seem to have is that I don't
see the mechanism by which the topic ID gets passed to the next page,
actually I haven't quite figured out exactly where the article ID gets
passed either and therein is probably the problem...is this what the
code-init does?

if ($argc == 1) $id = $argv[0]; <--this has been reffered to but I am still
not sure how it is invoked or used
if ($id && !mgd_is_article_in_topic_tree(41, $id)) $id = 0;
if ($id) $article = mgd_get_article($id);      <--here?
if ($id) $topic = mgd_get_topic($id);   <--I tried this but haven't seen the
desired result
if ($article) $author  = mgd_get_person($article->author);

I am not sure why I am so thick on this but I think I am getting closer....
kp


----- Original Message-----
From: Emiliano [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 18, 2000 11:18 AM
To: [EMAIL PROTECTED]
Subject: Re: [midgard] damn...I thought I was getting close...


Ken Pooley wrote:

> I want on the subsequent page to get the articles from the sub topic..so
> first page has topics that are linked...press link go to subtopic page and
> list   articles...my idea is that if I can use the existing topics as the
> basis for organization then the content creators can add and subtract sub
> topics without me having to hardwire the subpages, in my head it is like
> using puppet sprites in director...I am working in part off of what I
think
> is happening with the "if..then..else" in the article statement in the
very
> beginning of the root page...it seems to work and sends an artcle request
> off to the <[article2]> element, superseding the rest of the host's root
> page....the clue from last week from Carlida was to look at the code-init
> and that makes sense but I still need to understand what it is doing a
> little better..that is my guess..am I close?

Well you could easily do that with two active pages eg article and
topic that expect a single parameter (art/topic id) and display that.
if you want pretty urls you can easily add the names of all the
subtopics
or such after the id and ignore them:

/topic/14/music/reaggea/bob-marley/, or
/article/23765/music/reggea/bob-marley/sun-is-shining.html

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]



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