urlPrefix variable for <@ofbizUrl>

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

urlPrefix variable for <@ofbizUrl>

bhargav.tri
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
Reply | Threaded
Open this post in threaded view
|

Re: urlPrefix variable for <@ofbizUrl>

Deepika1234
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" <[hidden email]>
To:
[hidden email]
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='&lt;@ofbizUrl>main</@ofbizUrl>'><img
src=&quot;&lt;@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


Reply | Threaded
Open this post in threaded view
|

Re: urlPrefix variable for <@ofbizUrl>

Deepak Agarwal-2
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=&quot;<@ofbizContentUrl>images/myPicture.png</@ofbizContentUrl>"


On Thu, Sep 27, 2012 at 10:36 AM, Deepika1 S <[hidden email]> 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" <[hidden email]>
> To:
> [hidden email]
> 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='&lt;@ofbizUrl>main</@ofbizUrl>'><img
> src=&quot;&lt;@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