You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by "bhargav.tri" <Bh...@objectedge.com> on 2012/09/27 01:06:00 UTC
urlPrefix variable for <@ofbizUrl>
Is it possible to provide two different values to the urlPrefix from the same
.ftl page ?
Since it is an environment variable and not an argument (like "fullPath") I
am not sure how to overload the value of urlPrefix.
I am facing this issue when I have something like:
<a href='<@ofbizUrl>main</...@ofbizUrl>'><img
src="<@ofbizUrl>images/myPicture.png</...@ofbizUrl>"
In the above case I want two different url prefixes on the same line for two
different ofbizUrl's.
Is this possible?
Bhargav
--
View this message in context: http://ofbiz.135035.n4.nabble.com/urlPrefix-variable-for-ofbizUrl-tp4636480.html
Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: urlPrefix variable for <@ofbizUrl>
Posted by Deepak Agarwal <da...@gmail.com>.
There are many types of url already exists in ofbiz:
1) Host url as in <ofbizUrl> , it takes the host url set for the website
2) Content url , all your image, css , javascript should take this,
<ofbizContentUrl>
3) Alternate url for category and product pages , <ofbizAltCatalogUrl>
so on....
In your case it would be :
<a href='<@ofbizUrl>main</@
ofbizUrl>'><img
src="<@o...@ofbizContentUrl>"
On Thu, Sep 27, 2012 at 10:36 AM, Deepika1 S <de...@tcs.com> wrote:
> Dear Bhargav,
>
> In NotificationServices.java, we have a method called
>
> public static void setBaseUrl(GenericDelegator delegator, String
> webSiteId, Map context) {}
>
> where we set "baseUrl" in the context, in order to provide different urls
> instead of ofbizurl, you can investigate how this works.
>
> The Web_site entity will come in handy.
>
> Please let me know if any issues.
>
> Regards,
>
> Deepika Sahu
>
>
>
> From:
> "bhargav.tri" <Bh...@objectedge.com>
> To:
> user@ofbiz.apache.org
> Date:
> 09/27/2012 04:36 AM
> Subject:
> urlPrefix variable for <@ofbizUrl>
>
>
>
> Is it possible to provide two different values to the urlPrefix from the
> same
> .ftl page ?
>
> Since it is an environment variable and not an argument (like "fullPath")
> I
> am not sure how to overload the value of urlPrefix.
>
> I am facing this issue when I have something like:
> <a href='<@ofbizUrl>main</...@ofbizUrl>'><img
> src="<@ofbizUrl>images/myPicture.png</...@ofbizUrl>"
>
> In the above case I want two different url prefixes on the same line for
> two
> different ofbizUrl's.
>
> Is this possible?
>
>
> Bhargav
>
>
>
> --
> View this message in context:
>
> http://ofbiz.135035.n4.nabble.com/urlPrefix-variable-for-ofbizUrl-tp4636480.html
>
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>
>
> =====-----=====-----=====
> Notice: The information contained in this e-mail
> message and/or attachments to it may contain
> confidential or privileged information. If you are
> not the intended recipient, any dissemination, use,
> review, distribution, printing or copying of the
> information contained in this e-mail message
> and/or attachments to it are strictly prohibited. If
> you have received this communication in error,
> please notify us by reply e-mail or telephone and
> immediately and permanently delete the message
> and any attachments. Thank you
>
>
>
--
Thanks,
Deepak Agarwal,
Mobile: +91 9501190044
Re: urlPrefix variable for <@ofbizUrl>
Posted by Deepika1 S <de...@tcs.com>.
Dear Bhargav,
In NotificationServices.java, we have a method called
public static void setBaseUrl(GenericDelegator delegator, String
webSiteId, Map context) {}
where we set "baseUrl" in the context, in order to provide different urls
instead of ofbizurl, you can investigate how this works.
The Web_site entity will come in handy.
Please let me know if any issues.
Regards,
Deepika Sahu
From:
"bhargav.tri" <Bh...@objectedge.com>
To:
user@ofbiz.apache.org
Date:
09/27/2012 04:36 AM
Subject:
urlPrefix variable for <@ofbizUrl>
Is it possible to provide two different values to the urlPrefix from the
same
.ftl page ?
Since it is an environment variable and not an argument (like "fullPath")
I
am not sure how to overload the value of urlPrefix.
I am facing this issue when I have something like:
<a href='<@ofbizUrl>main</...@ofbizUrl>'><img
src="<@ofbizUrl>images/myPicture.png</...@ofbizUrl>"
In the above case I want two different url prefixes on the same line for
two
different ofbizUrl's.
Is this possible?
Bhargav
--
View this message in context:
http://ofbiz.135035.n4.nabble.com/urlPrefix-variable-for-ofbizUrl-tp4636480.html
Sent from the OFBiz - User mailing list archive at Nabble.com.
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you