I though I had a great understanding of defining the systems path but now I
am confused using Ofbiz
IF I have changed the
mount-point="/ecommerce" to mount-point="/"
in the /ofbiz14/specialpurpose/ecommerce/ofbiz-component.xml
If I have a file located in the directory
/ofbiz14/specialpurpose/ecommerce/webapp/ecommerce/images/example.jpg
And I have another file that will LINK to the example.jpg file, which is
located in
ecommerce/webapp/ecommerce/includes/calling.ftl
How can I properly create a link to the example.jpg?
<td><img src="/images/example.jpg" width="100%" height="58" ></td>
*********************************************************************************
Another situation:
IF the sliderindex.html & main.flt are in the following directory
/root/app1/ofbiz14/specialpurpose/ecommerce/webapp/ecommerce/
I want main.ftl to #include sliderindex.html
<#include "component://sliderindex.html" >
Is this the correct path to be used to include the sliderindex.html file?
Thanks,
-T
On Mon, Jun 22, 2015 at 5:52 PM, Adrian Crum <
[email protected]> wrote:
> A path in a URL is not the same as a host file system path.
>
> The component: scheme is an OFBiz shortcut to a location on the host file
> system, it is not an HTTP URL.
>
> Adrian Crum
> Sandglass Software
> www.sandglass-software.com
>
> On 6/22/2015 2:49 PM, Tom Running wrote:
>
>> I am a bit confused with the path.
>>
>>
>> ********************* This is what I have before changed the
>> mount-point="/" *************
>>
>> <!Doctype html>
>> <#include "component://ecommerce/webapp/ecommerce/sliderindex.html" >
>> </html>
>>
>>
>> What should the new path be defined as?
>> <#include "component://sliderindex.html" >
>>
>> Thanks,
>> -Tom
>>
>>
>> On Mon, Jun 22, 2015 at 5:39 PM, Tom Running <[email protected]>
>> wrote:
>>
>> I got it to work now for port 80.
>>>
>>> These are the files that I modified.
>>>
>>> *********Change Port 8080 t0 80 files ****************************
>>> /root/app1/ofbiz14/framework/webapp/config/url.properties
>>> /root/app1/ofbiz14/framework/catalina/ofbiz-component.xml
>>> /root/app1/ofbiz14/specialpurpose/jetty/ofbiz-component.xml
>>>
>>> Thank you for your help,
>>> -T
>>>
>>> On Mon, Jun 22, 2015 at 5:09 PM, Tom Running <[email protected]>
>>> wrote:
>>>
>>> Thanks Mandeep,
>>>>
>>>> If I left it at port 8080 and changed the ofbiz-component.xml) to "/".
>>>>
>>>> Then I can access to the ecommerce website.
>>>>
>>>>
>>>> But when I change it to port 80 in the url.properties and changed the
>>>> ofbiz-component.xml) to "/"
>>>> I can not get access to the ecommerce website.
>>>>
>>>>
>>>> What am I missing.
>>>>
>>>> Here are my configuration:
>>>>
>>>> **********/ofbiz14/framework/webapp/config/url.properties***************
>>>> # HTTP Port (Not Secure port)
>>>> port.http=80
>>>> force.http.host=
>>>>
>>>>
>>>> *****/ofbiz14/specialpurpose/ecommerce/ofbiz-component.xml ********
>>>> <webapp name="ecommerce"
>>>> title="eCommerce"
>>>> server="default-server"
>>>> location="webapp/ecommerce"
>>>> mount-point="/"
>>>> app-bar-display="false"/>
>>>>
>>>>
>>>>
>>>>
>>>> Thanks,
>>>> -T
>>>>
>>>> On Mon, Jun 22, 2015 at 3:55 PM, Mandeep Sidhu <
>>>> [email protected]
>>>>
>>>>> wrote:
>>>>>
>>>>
>>>> Change the port in url.properties to 80 and set mount point of your
>>>>> ecommerce component (ofbiz-component.xml) to "/".
>>>>> port.http=80
>>>>>
>>>>> For production deployments it's always better to use virtual hosts
>>>>> configured in your apache HTTPD config file.
>>>>>
>>>>> On Mon, Jun 22, 2015 at 1:38 PM, Tom Running <[email protected]>
>>>>> wrote:
>>>>>
>>>>> I need the ecommerce website to run on port 80 with a shorter URL.
>>>>>>
>>>>>> How to change this URL
>>>>>>
>>>>>> http://erp1.test.com:8080/ecommerce/control/main
>>>>>>
>>>>>> To
>>>>>>
>>>>>> http://erp1.test.com
>>>>>>
>>>>>> Permanently
>>>>>>
>>>>>>
>>>>>> Thanks,
>>>>>> -T
>>>>>>
>>>>>>
>>>>>
>>>>
>>>>
>>>
>>