On Thu, Feb 01, 2001 at 07:09:59PM +0100, Emiliano mentioned:
> > Is it possible to somehow come up with a URL etc. for an attachment, so I
> > could go something like
> > <img src="/?attachment_id=928">
>
> Yes. You'd create an active page (I think Asgard calls them virtual path
> pages) that you could refer to, let's say this page is /blob, then
> define a code-init element for that page which reads:
> <? if ($argv[0]) { mgd_serve_attachment($argv[0]); } exit; ?>
> The page body can be empty.
> This will allow you to fetch all blobs simply as
> /blob/928
Oooh. Excellent. However, I went looking through the Asgard UI for
something like a "virtual path page", and couldn't see anything.
So, I've created a new page, with a URL of "http://midgard.linux.ie/image/"
(the root page previously was "http://midgard.linux.ie"), with the above
content.
However, http://midgard.linux.ie/image/60 does not appear as an image - I
get "File does not exist: /var/www/virtualhosts/linux.ie/html/image/60" in
the logs.
I thought "maybe it's because I'm using the ''linux.ie'' style for this
page, which as top/bottom/navbar elements. When I tryed to create a
"code-init" element, but clicking on the "elements..." link for "page", it
brought me to the Asgard-Root page elements list. Then I got confused, and
fell over.
For such a "virtual page page", should I be using a new style, that has
nothing in it, or should it matter ?
Kate
--
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]