On Thu, Feb 15, 2001 at 01:53:36PM +0100, Emiliano mentioned:
> "John P . Looney" wrote:
> > 
> >  Someone else mentioned this earlier in the week .. but does anyone have
> > some example code for a smart /articles active page ?
> > 
> >  Something that'll look for /articles/sometopic/article_url.html as well
> > as /articles/82 /articles/sometopic/93 etc.
> 
> That would depend on what you want /articles/sometopic/article_url.html
> to do.

 Indeed. It's more the argument parsing stuff I'm interested. At the
moment, I've an "articles" page, which accepts something like 

 /articles/id/60

 and wraps a style around it (see http://midgard.linux.ie/articles/id/17)
- so that's ok. But, I'm thinking that if there are loads and loads of
articles, it would be nice to do something like

 /articles/news/latest/first

  where "first" is $article->name. So, instead of looking through all the
articles in the sitegroup, one by one, it would look at articles under the
$topic=get_topic_by_name("news"), then maybe do mgd_walk_topic_tree() to
find the topic "latest", and then search *its* articles for that name. Is
this too complex ? 

 Should I have a separate active page called "/topics" for this, and just
use articles when I have the name or an id for the article I want ? I want
the articles to have human-readable URLs whenever possible.

John

-- 
 When I say 'free', I mean 'free': free from bond, of chain or command: 
to go where you will, even to Mordor, Saruman, if you desire. " 
    -- Gandalf, paraphrasing the choice between Free and Non-free software

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

Reply via email to