Carilda wrote:
> Then your uris would be something like:
>     /                                root page
>     /13.html                 topic (or subtopic?) 13
>     /13/22.html            topic (or subtopic?) 13, article 22 which should
> belong to topic 13
> 
> There should be a "mgd_get_topic_by_name" but not in 1.2.5 -- is it in 1.2.6
> anyone?  (You can also write a function to do this using php calls on the
Yes, it will be in 1.2.6, and you can get beta-version to use these functions, but also
you might try php functions from the tutorial on 
www.midgard-project.org after which such functionality was modeled and included at the
core of Midgard.
See 'Tips and Tricks' page for more.
> 
> If you look at midgard-root.php3 (startup file), you will see that code-init
> is called before ROOT (and the dependent page elements).
> 
> You can put some code in here to parse the uri to extract topic, article....
> 
> Then, your page definition should be a set of conditionals to determine how
> you got there.
> 
> Alternatively, if you don't want to display news on every page (you have it at
> the beginning of the page definition), you could have a subpage below the root
> page which was actually the active page doing all this work -- or multiple
> subpages, corresponding to different topics, with your content-fillers having
> to put their new topics as subtopics to this set.
> 
> Was I at all coherent here?
Yes.

<BR>,
Alexander.
---------------------------------------------
This message was sent via BSPU MailMan server.
http://www.bspu.unibel.by/MailMan/



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