"John P . Looney" wrote:

>  Thanks, I have a handle on that. Unfortunately, what I thought the
> attachments were for was images; basically, I want to "attach" ten images
> to a style, and then refer to those images in the style HTML/PHP, without
> having to let graphics people FTP into the server.
> 
>  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

etc.

Emile

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

Reply via email to