You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by "Gabrielle C. Nguyen" <ga...@gabriellenguyen.com> on 2015/06/18 15:15:21 UTC

Linking to documents on the server

Hello, 


Thank you all for the feedback on my previous question. I have one other.... 


I am trying to create a link on the main page to a PDF file within ofbiz. 
I want to be able to access this file by linking to it on http://localhost:8080/ecommerce/control/main 
I have placed the PDF file within ecommerce/webapp/ecommerce 


At this point, I cannot properly access them. 


Is there a specific location I should be putting these files or specific syntax for the path? 
Can someone provide guidance to point me in the correct direction? 





Thank You, 


Gabrielle 


Re: Linking to documents on the server

Posted by Nicolas Malin <ni...@nereide.fr>.
Hi Gabrielle,

Load your pdf file on content component and set a redirect (from 
controller.xml) to 
content/control/ViewSimpleContent?dataResourceId=${yourDareResourceIdGenerate}

Nicolas

Le 18/06/2015 15:15, Gabrielle C. Nguyen a écrit :
> Hello,
>
>
> Thank you all for the feedback on my previous question. I have one other....
>
>
> I am trying to create a link on the main page to a PDF file within ofbiz.
> I want to be able to access this file by linking to it on http://localhost:8080/ecommerce/control/main
> I have placed the PDF file within ecommerce/webapp/ecommerce
>
>
> At this point, I cannot properly access them.
>
>
> Is there a specific location I should be putting these files or specific syntax for the path?
> Can someone provide guidance to point me in the correct direction?
>
>
>
>
>
> Thank You,
>
>
> Gabrielle
>
>