[xwiki-users] How to export and import images?
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?? -- View this message in context: http://xwiki.475771.n2.nabble.com/How-to-export-and-import-images-tp7586878.... Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi, On Sep 3, 2013, at 11:00 AM, lequan.moon <[email protected]> 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
OK. I got it. Thank for your respone. -- View this message in context: http://xwiki.475771.n2.nabble.com/How-to-export-and-import-images-tp7586879p... Sent from the XWiki- Users mailing list archive at Nabble.com.
participants (2)
-
lequan.moon -
Vincent Massol