Hi avijit,

It depends if you are speaking about products or "general" images

For general images, have a look into url.properties:

   # Static Content URLs to make it easy to move the serving load for static 
content to other machines
   # -- these are for general content such as images, js & css files, or 
non-dynamic HTML files
   content.url.prefix.secure=
   content.url.prefix.standard=

Then have a look at ContentUrlTag::appendContentPrefix methods and how that's 
used in whole code.

It allows you to move images and alike files in a specific place of a domain. 
For instance that's how it's used in demos:

https://github.com/apache/ofbiz-tools/blob/master/demo-backup/patch/trunk/url.properties.patch

Same for next (22.01) and stable (18.12). For instance the OFBiz logo is 
accessible at https://demo-trunk.ofbiz.apache.org/images/ofbiz_logo.png
And is located into /home/ofbizDemo/trunk/themes/common-theme/webapp/images on 
the server for the domain https://demo-trunk.ofbiz.apache.org/

That's the best way to handle general images location. If needed, a look into 
code should help.

For products images have a look at catalog/control/Imagemanagement and 
catalog.properties

HTH

Jacques


Le 12/07/2022 à 12:19, Avijit Bose a écrit :
Hi,

I have few images in folder.... say ... "d:\images" and I am trying to
retrieve and display those images in a FTL file. But the image is not
displaying.

When I put the same image in "webapp \ my app \ images" folder inside
ofbiz, the ftl file gets the access and image gets displayed.

I think ofbiz is not allowing ftl file the access to "d:\images" folder.
Pls note ftl file has plain html code.

Pls let me know how could I provide the same access in ofbiz.

thank you
avijit

Reply via email to