<@ofbizContentUrl> is taken into account instead of hardwired /images.

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

<@ofbizContentUrl> is taken into account instead of hardwired /images.

Alex D. Fleming-2
Hi All,

In ftl files Use of  <@ofbizContentUrl> is taken into account instead of
hardwired /images.
What is the significance of  "<@ofbizContentUrl>"  instead of hardwired
/images ??

--
Alex D. Fleming
Reply | Threaded
Open this post in threaded view
|

Re: <@ofbizContentUrl> is taken into account instead of hardwired /images.

cjhowe
Hey Alex,
IIRC, ofbizContentUrl is defined by the WebSite entity.  This allows
you to easily set a content server that is different from your ofbiz
server.   Tip: if you're using custom content, it's usually easier if
you put them inside your custom webapp.  
ie
ofbizhome/hot-deploy/myComponent/webapp/myWebapp/images/myContent.jpg

if you've copied the web.xml file, you should be able to display your
image by
src="<@ofbizContentUrl>/myWebapp/images/myContent.jpg</@ofbizContentUrl>"

--- "Alex D. Fleming" <[hidden email]> wrote:

> Hi All,
>
> In ftl files Use of  <@ofbizContentUrl> is taken into account instead
> of
> hardwired /images.
> What is the significance of  "<@ofbizContentUrl>"  instead of
> hardwired
> /images ??
>
> --
> Alex D. Fleming
>