> > This surprises me a little. This way the blobs are relative to the script
> > page, but they're attached to an article so there needs to to logic
> > (probably in code-init) to actually display the images.
> 
> Sorry,  I was probably wrong (was a bit sleepy last night when I was
> fooling around with this). The blobs might have been attached to the
> page (admin-root/topic/article) when it worked. So, what You say is that
> I can't (as easy as on pages) attach blobs to articles?

The attachment is exactly the same. The only difference is that
mod_midgard in the url translation phase looks if it can find a blob
attached to a page for that given URL and hands it out on it's own. The
page attachments are the only place I can do that because they're the only
ones to have a guaranteed mapping to an URL (by definitaion).

For all others, a code-init like

<?
if ($article = mgd_get_article($argv[0])) {
  $article->serveattachment($argv[1]);
  exit;
}
?>

would be needed. You can of course add more code to check if the blob is
really available & such, but this would do the trick for
.../article/314/image.gif

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]

Reply via email to