Hi,
On Sep 3, 2013, at 11:00 AM, lequan.moon <lequan.moon(a)gmail.com> wrote:
I got an issue about exporting an importing images.
I have css classes that use image like:
.a_class{
background: url("/xwiki/resources/images/some_image.png");
}
of course when I exported my xwiki as .xar, there will be no images in that
package.
Deploying the package on other computer needs to manually copy images into
the folder.
Is there a way to include images into .xar packages and importing could
create image folders??
You shouldn't put your own images in that xwiki directories.
What you can do is attach the image to a page instead. Then in your CSS use some velocity
to get it.
Another solution is to add the image in a JAR installed as an extension.
In some future we will probably allow the EM to install extensions in resources
directories somewhere in the permanent directory too + improve our import/export format to
include also some data from the permanent directory.
Right now the simplest is to attach the image to a wiki page.
Thanks
-Vincent