John P . Looney wrote:
> I was thinking of having a /articles/static/ active page, where the
> argument would be the url field of an article It'd be nice for a permenant
> placement for an article. Only, it looks like it'd be inefficent to get
> all articles, and look for the one with the URL matching. It'd be much
> better to do something like
> "select id from article where url='article_name'"
>
> Should midgard users be beaten for using SQL directly ?
Yes, beaten to death... ;)
> Is there a "nice" way of doing this ?
Yep, you could call the function
mgd_get_article_by_url(implode("/", $argv) if it'd exist...
In the meantime, you can file a feature request ;)
> Kate
--
Best Regards,
David Guerizec Open Source Developer
Aurora R&D [EMAIL PROTECTED]
Midgard core developer http://www.midgard-project.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]