Emile wrote (pretty well for a sick guy)...
>So /topicname/ is in fact handled by the root page script? Then yes,
><(content)> will allways correspond to the content part of your root
>page. What do you want to accomplish? Where do you want to get the
>content from?
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?
-----Original Message-----
From: Emiliano [SMTP:[EMAIL PROTECTED]]
Sent: Monday, January 17, 2000 3:51 PM
To: [EMAIL PROTECTED]
Subject: Re: [midgard] damn...I thought I was getting close...
Ken Pooley wrote:
> I have a root page, it is active...it lists all of the topics and
> descriptions for a category...the idea is that the topic name is a link
> into the topic, there is a <[topic]> (listed further down) that should
take
> me into the topic and list all of the articles which are childeren of
that
> topic..the link works, it goes to /topicname/ but then it seems to go
back
> to the root page for content...it seems like either A) it is not picking
up
> the topic condition and going off to the topic subpage or ...well that
> seems to be it...
So /topicname/ is in fact handled by the root page script? Then yes,
<(content)> will allways correspond to the content part of your root
page. What do you want to accomplish? Where do you want to get the
content
from?
> also I am having trouble finding a way to pass the
> variable topic ID into the
> <?$article = mgd_list_topic_articles(topic.id);
> ....I think...though I haven't gotten to run that far.....
You have various means. $midgard->uri will hold the full request URI
(so that would be /topicname/ or /dev/topicname in this case), and
$argv will hold the path elements that follow the active page
(so all elements, since it's the root page): $argv[0] will
be 'topicname', or $argv[0] will be 'dev' and argv[1] 'topicname, etc.
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]