I got a system like that developed. Still, the rootpage needs to have a $topic =
guid; set in code-init for it to work well. The whole system is 3 - 4 snippets
with code for generating a userdefined profile based on the $topic->code field
as well, thus users can set some parameters them selves. Instead of just showing
articles, I use the topicdescription so users can add extra content there as
well.

Tarjei

[EMAIL PROTECTED] wrote:
> 
> > Just to satisfy my curiousity: why would you want to map
> > topics/articles to pages? If you want meaningful urls, why not have
> > the content in the pages themselves?
> 
> take one active page, and use that to display articles_by_name_
> 
> something like:
> 
> <?php
> 
> roottopic=mgd_get_object_by_guid('jkaldlajljadjlfaljsomething');
> 
> for ($i=0 ; $i < $argc ; $i++) {
>     $topic = mgd_get_topic_by_name($topic->id,$argv[$i]);
> }
> $article = mgd_get_article_by_name($topic->id,$argv[$i + 1]);
> 
> // display the article
> ?><h1>&(article.name);</h1><?php
> 
> // NOTE: untested!!!
> 
> ?>
> 
> wkr,
> 
> --
> Envida                     http://www.envida.net/
> Armand A. Verstappen       Graadt van Roggenweg 328
> [EMAIL PROTECTED]       3531 AH Utrecht
> tel: +31 (0)30 298 2255    Postbus 19127
> fax: +31 (0)30 298 2111    3501 DC Utrecht
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to