On Sun, Aug 17, 2008 at 8:30 AM, sverhagen <[EMAIL PROTECTED]> wrote:

> Can sub-modules re-use the site resources of their parent? And how?
> I've a src/site/site.xml in my parent project. This files is nicely re-used
> by the sub-models.
> However, my src/site/resources/... (an image and a CSS file in their own
> sub-folers) aren't picked up.
> This is how the image is referenced:
>        <bannerLeft>
>                <src>./images/image.png</src>
>        </bannerLeft>

Wouldn't it need to be ../images/image.png?  (Two dots leading, rather
than one.)  The files in src/main/resources won't be copied into every
subdirectory, but they will be there on the server, so relative urls
should work.

(Note that this won't work if you preview the individual pieces of the
site from the target directory, you'll need to stage it or deploy it
to check the links.)

-- 
Wendy

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

Reply via email to