[ic] More about images in /pages directory

Jason Timm interchange-users@lists.akopia.com
Fri May 25 19:16:01 2001


Hi,

Thanks for the tip - that did answer some questions, but...

1) Say we have an image in the /pages directory such as /pages/title.gif.
If we then go to www.foo.com/cgi-bin/storefront/title.gif, we get a message
that says:

Sorry, the page (title.gif) was not found
The requested item (title.gif) was not found. You can return to browsing our
catalog, if you wish.

So, for some reason it does not allow us to reference an image file in the
/pages directory even if we get to it via a browser directly as opposed to a
[page] or [area] tag.  Is there a way to make this work?

2) Also, the <img src="title.gif"> tag seems to add /storefront/images to
the image reference yielding:

/storefront/images/title.gif

Is there a variable similar to [set mv_add_dot_html][/set] which would allow
us to turn off the addition of the /storefront/images to the image source
attribute?  If there is not a variable, is there another way to accomplish
this?


Note: I know the easy answer would be to just not put images there, but the
application we are building requires it.  Thanks for your help in advance...

Jason





-----Original Message-----
From: interchange-users-admin@developer.akopia.com
[mailto:interchange-users-admin@developer.akopia.com]On Behalf Of Jason
Kohles
Sent: Friday, May 25, 2001 1:57 PM
To: interchange-users@developer.akopia.com
Subject: Re: [ic] Images in /pages directory


On Fri, May 25, 2001 at 01:14:41PM -0700, Jason Timm wrote:
> I want to be able to store images in the /pages directory and reference
them
> with the [page] or [area] tag.  Currently, it seems that only .html files
> can be referenced.  Does anyone know where that filter is located?  There
> are other file types I would like to be able to reference as well such as
> .css, etc.  I have looked around but haven't been able to find where non
> .html files are filtered out.  Any ideas?
>
You just have to unset the scratch variable mv_add_dot_html, like this:

[set mv_add_dot_html][/set]
[area stuff.css]

--
Red Hat E-Business Solutions                    Jason Kohles
11480 Sunset Hills Road                         Senior System Architect
Reston, VA 20190                                jkohles@redhat.com
_______________________________________________
Interchange-users mailing list
Interchange-users@lists.akopia.com
http://lists.akopia.com/mailman/listinfo/interchange-users