forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sergey Missan <ad...@javable.com>
Subject images in local dirs -- solved
Date Wed, 05 Mar 2003 17:06:28 GMT
Hello,

Sometime ago I requested to have images in local dirs, instead of
dumping them all into resources/images.

This tweak of sitemap seems to do the trick (but I don't know if this
is the best solution):

<!-- WARNING: See above: this target should not be made use of -->
            <map:match pattern="**/images/**.*">
               <map:read src="content/xdocs/{0}" mime-type="image/{3}" />
            </map:match>


Now, if I use <figure> like this

<figure width="402" height="226" src="images/jw-02-howto1.gif"
alt="Test." />

and place image file into the local image/ dir (i.e.
xdocs/subdir/images/), forrest correctly includes it.

This allows inclusion of images together with xml documents that use
them and leads to the more "manageable" site structure.

-- Sergey
 PS: what is the current situation with images in PDFs?



Mime
View raw message