File Path in FSR

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-08-2011 06:09 AM
Hi,
I have developed some web content using Alfresco, my content template has some images which are picked from the $Web_Project/images folder, so ideally when i create the content the images are placed in relative paths like "/images/a.png".
I use a FSR to deploy the content on to the File System to a folder say /var/alfresco-dep, this has all the folders of my $WEB_PROJECT/ROOT.
Now when consume the html web content published to FSR using my Portlet i see the image paths are broken, since they refer to /images/…
Can any one tell me how make these image paths as absolute when publishing the HTML Web Conten to FSR so that my images or css or javascript paths are not broken.
~Kamesh
I have developed some web content using Alfresco, my content template has some images which are picked from the $Web_Project/images folder, so ideally when i create the content the images are placed in relative paths like "/images/a.png".
I use a FSR to deploy the content on to the File System to a folder say /var/alfresco-dep, this has all the folders of my $WEB_PROJECT/ROOT.
Now when consume the html web content published to FSR using my Portlet i see the image paths are broken, since they refer to /images/…
Can any one tell me how make these image paths as absolute when publishing the HTML Web Conten to FSR so that my images or css or javascript paths are not broken.
~Kamesh
Labels:
- Labels:
-
Archive
7 REPLIES 7
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-08-2011 06:31 AM
Its probably easiest if you just stick with relative paths.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-08-2011 06:34 AM
If I stick to relative path then how do I consume the same form my Portlet. My Portlet sits i Liferay and when I say "/images" its going to search it inside my Liferay server.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-08-2011 07:41 AM
It may help if you spell out your paths and what you want deployed where.
Either you need to change your portlet to not select an absolute so something like ../images. Or alternativly you could actually deploy images to the root of your web server so /images works and has the images in the right place.
Either you need to change your portlet to not select an absolute so something like ../images. Or alternativly you could actually deploy images to the root of your web server so /images works and has the images in the right place.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-08-2011 08:58 AM
its like this, the Web Content are all deployed @
/var/alfresco-deployments/<project>/images
/var/alfresco-deployments/<project>/css
/var/alfresco-deployments/<project>/js
/var/alfresco-deployments/<project>/content
Actually i was thinking using /var/www/html for deploying all static content like images,css,js which when hooked with applications will automatically pick the path.
Was just evaluating sans httpd approach to arbitary file system
/var/alfresco-deployments/<project>/images
/var/alfresco-deployments/<project>/css
/var/alfresco-deployments/<project>/js
/var/alfresco-deployments/<project>/content
Actually i was thinking using /var/www/html for deploying all static content like images,css,js which when hooked with applications will automatically pick the path.
Was just evaluating sans httpd approach to arbitary file system

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-09-2011 05:19 AM
FSR on Linux
——————–
am trying to do a FSR to a HTTPD server which has the docroot –> /var/www/html , i had given the rwx permissions to the user how is running FSR/Alfresco. But when I
run the deployment am not able to see the content being deployed.
But when I give the deployment something to the user home folder, i see the content being deployed properly. Few things am not sure is if I am missing some permission setting for the folder /var/www/html
Any help in this regard will be good
~Kamesh
——————–
am trying to do a FSR to a HTTPD server which has the docroot –> /var/www/html , i had given the rwx permissions to the user how is running FSR/Alfresco. But when I
run the deployment am not able to see the content being deployed.
But when I give the deployment something to the user home folder, i see the content being deployed properly. Few things am not sure is if I am missing some permission setting for the folder /var/www/html
Any help in this regard will be good

~Kamesh
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-09-2011 06:21 AM
If there's a permissions error there will be a message in the log files. Are there any errors in your deployment.log? Or on the deployment page in explorer?

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-09-2011 07:19 AM
nope there are no errors in logs, or in the screen when deployment is happening - thats the crucial problem.
