cancel
Showing results for 
Search instead for 
Did you mean: 

Logo not viewing

hithardhas
Champ in-the-making
Champ in-the-making
Hi,

   I developed one web page by using alfresco. In this page i created separate header and leftnav webforms. In leftnav we have a logo. So for that in webform(XSD) i added one column for logo. so he selects the logo in alfresco UI itself. For that i created one folder in my webproject. That structure is assets/images/abc.gif. Up to this no problem.

   But in the time of entering values in that form i selected logo form UI. On that time the path of the abc.gif is look like this   /alfresco/images/abc.gif.(It staring with /).  THis is the main problem. My xslt retriving what the value appearing in that text box. so i am getting /alfresco/images/abc.gif. after generating the html the logo is not viewing. if i make the path as assets/images/abc.gif(removed /) manually, it is viewing.It means the assets folder is parellel to that page.my requirement is like that.

I have a solution, i.e, when we select the logo in UI. The path should start with the folder name like this assets/images. not like /assets/images. Actually this is the work with alfresco people.

Let me know if you have another solution for resolving the problem. Even in alfresco sample project also having the same problem.


Thank you in Advance,
Hithardha T
2 REPLIES 2

vijay_alfresco
Champ in-the-making
Champ in-the-making
Hi,

I think putting / is correct, you have to change to rendering template to have
<img src="${image}" /> instead of <img src="/${image}" />

Hope this helps

hithardhas
Champ in-the-making
Champ in-the-making
HI,
  Thank you for your reply. But mu code is look like this. How can i resolve?

<IMG alt="Arcil" width="103" height="77">
<xsl:attribute name="src"><xsl:value-of select="/leftnav:leftnav/leftnav:Logo/leftnav:image"/></xsl:attribute>
</IMG>

After generating the html it comes src=/assets/images/logo.gif. In this case how can i solve.
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.