why use <@ofbizContentUrl>

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

why use <@ofbizContentUrl>

frabjousB
Forgive the very basic question. I understand that this is a freemarker transform. But, under what circumstances would this tag be used?

I was using it to load css:
<@ofbizContentUrl>${StringUtil.wrapString(css)}</@ofbizContentUrl>

but got the same output without the @ofbizContentUrl tags.

Thanks in advance for the clarification.
Reply | Threaded
Open this post in threaded view
|

Re: why use <@ofbizContentUrl>

frabjousB
Oh, I think I may have answered my own question. In framework/webapp/config/url.properties I see where we can define a content.url.prefix.secure and content.url.prefix.standard.

In our implementation, this value is blank so that is why I am seeing the same value with or without the tags.

Is this understanding correct?

Reply | Threaded
Open this post in threaded view
|

Re: why use <@ofbizContentUrl>

Jacques Le Roux
Administrator
Yes, it allows you to set a path to static data, it could be on your system or even used with Akamai or such

Jacques

From: "frabjousB" <[hidden email]>
To: <[hidden email]>
Sent: Friday, August 13, 2010 1:43 AM
Subject: Re: why use <@ofbizContentUrl>


>
> Oh, I think I may have answered my own question. In
> framework/webapp/config/url.properties I see where we can define a
> content.url.prefix.secure and content.url.prefix.standard.
>
> In our implementation, this value is blank so that is why I am seeing the
> same value with or without the tags.
>
> Is this understanding correct?
>
>
> --
> View this message in context: http://ofbiz.135035.n4.nabble.com/why-use-ofbizContentUrl-tp2323524p2323537.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>