Is category linkOneImageUrl and linkTwoImageUrl ever used in ofbiz?

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

Is category linkOneImageUrl and linkTwoImageUrl ever used in ofbiz?

Wai
Hello,

Is linkOneImageUrl and linkTwoImageUrl (and associated fields in entity ProductCategory) of a category ever used in ofbiz?  If so, what is it used for?

Thanks,
Wai
Reply | Threaded
Open this post in threaded view
|

Re: Is category linkOneImageUrl and linkTwoImageUrl ever used in ofbiz?

Jacques Le Roux
Administrator
This may help you, unfortunately links are now broken
http://markmail.org/message/2j2xsfitvpnb3oum

For one link I guess it was https://cwiki.apache.org/confluence/display/OFBIZ/Guide+to+OFBiz-i18n%2C++Internationalisation+of+OFBiz 
anyway unrelated to your question (stil useful)

Jacques

From: "Wai" <[hidden email]>

> Hello,
>
> Is linkOneImageUrl and linkTwoImageUrl (and associated fields in entity
> ProductCategory) of a category ever used in ofbiz?  If so, what is it used
> for?
>
> Thanks,
> Wai
>
> --
> View this message in context:
> http://ofbiz.135035.n4.nabble.com/Is-category-linkOneImageUrl-and-linkTwoImageUrl-ever-used-in-ofbiz-tp4287276p4287276.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
Wai
Reply | Threaded
Open this post in threaded view
|

Re: Is category linkOneImageUrl and linkTwoImageUrl ever used in ofbiz?

Wai
Hello Jacques,

Thanks for the links.  I've read them but do not know how they relate to my original question.  Ie. what exactly are linkOneImageUrl and linkTwoImageUrl used for?

Does linkOneImageUrl and linkTwoImageUrl of entity ProductCategory deal with localization/internationalization?  I don't see how that is the case as there are no locales associated with these fields.

The ofbiz code does not show where it actually serve a useful purpose other than uploading an image for these entity fields.

Wai
Reply | Threaded
Open this post in threaded view
|

Re: Is category linkOneImageUrl and linkTwoImageUrl ever used in ofbiz?

Jacques Le Roux
Administrator
Ho Sorry, I thought you would get it from the message. They are simply links for images for Product Categories. You can use them as
you like... The message gave an example of use. Mmm... though maybe only the setting. Then it's depends if you need them or not. And
I confirm there is no code OOTB to handle them. Setting a link from /images allows you to define a static link which can be handled
with the OFBiz content macro concept.

Jacques

From: "Wai" <[hidden email]>

> Hello Jacques,
>
> Thanks for the links.  I've read them but do not know how they relate to my
> original question.  Ie. what exactly are linkOneImageUrl and linkTwoImageUrl
> used for?
>
> Does linkOneImageUrl and linkTwoImageUrl of entity ProductCategory deal with
> localization/internationalization?  I don't see how that is the case as
> there are no locales associated with these fields.
>
> The ofbiz code does not show where it actually serve a useful purpose other
> than uploading an image for these entity fields.
>
> Wai
>
> --
> View this message in context:
> http://ofbiz.135035.n4.nabble.com/Is-category-linkOneImageUrl-and-linkTwoImageUrl-ever-used-in-ofbiz-tp4287276p4289792.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
Reply | Threaded
Open this post in threaded view
|

Embedded Tomcat, getRemoteAddr, httpd proxy

Steve Fatula
So, using the built in ofbiz Tomcat, and, a Apache httpd front end to tomcat, getRemoteAddr for ip tracking in visits returns 127.0.0.1, which I suppose it should.

One can turn on stats.proxy.enabled, and that indeed often returns a single IP, but, often multiple ips in a comma separated list. Since that merely uses the x-forwarded-for header, that's indeed the documented behavior. But, we don't want to store multiple ips.

Tomcat apparently comes with a remoteIpValve, but, not sure if this can be configured into the ofbiz embedded tomcat. Probably not, unless I missed it, it's not in the code.

Is there another solution to this? I want the IP that would be returned by the tomcat remoteIpValve, which is the rightmost non internal address. Or, is there a better way? What do people do for this?

Steve
Reply | Threaded
Open this post in threaded view
|

Re: Embedded Tomcat, getRemoteAddr, httpd proxy

samhamilton
Hi Steve,

I think that if you use the ajp connector from httpd to ofbiz then this should start to show proper IP addresses.

Cheers
Sam




On 13 Jan 2012, at 14:21, Steve Fatula wrote:

> So, using the built in ofbiz Tomcat, and, a Apache httpd front end to tomcat, getRemoteAddr for ip tracking in visits returns 127.0.0.1, which I suppose it should.
>
> One can turn on stats.proxy.enabled, and that indeed often returns a single IP, but, often multiple ips in a comma separated list. Since that merely uses the x-forwarded-for header, that's indeed the documented behavior. But, we don't want to store multiple ips.
>
> Tomcat apparently comes with a remoteIpValve, but, not sure if this can be configured into the ofbiz embedded tomcat. Probably not, unless I missed it, it's not in the code.
>
> Is there another solution to this? I want the IP that would be returned by the tomcat remoteIpValve, which is the rightmost non internal address. Or, is there a better way? What do people do for this?
>
> Steve


smime.p7s (6K) Download Attachment