Hello, I created a logo component and JSP file is like this :
<%@include file="/libs/wcm/global.jsp"%><% %><%@ page import="com.day.text.Text" %><% long absParent = currentStyle.get("absParent", 2L); String home = Text.getAbsoluteParent(currentPage.getPath(), (int) absParent); Resource image = currentStyle.get("image", Resource.class); %><a href="<%= home %>.html"><% if (image ==null) { %>Home<% } else { %><img border="0" src="<%= image.getPath() %>" alt="Home" ><% } %></a>
But the image which I upload for logo does not stay there. When I sigh out of instance and then sign in again that image will go off.
Views
Replies
Total Likes
Missing code - see this HELPX article:
https://helpx.adobe.com/experience-manager/using/creating-logo.html
Hope this helps...
Views
Replies
Total Likes
Is the image present in CQ DAM or in your local machine.
Just check the JCR property of the path to find which location it is referencing. Debug this way, May be you might find a solution. Happy coding :)
Views
Replies
Total Likes
I was trying to upload image from my local drive. I have not added it to repository.
Views
Replies
Total Likes
Priyanka_NewToAEM wrote...
I was trying to upload image from my local drive. I have not added it to repository.
Local images will not be available if you move your code base to another environment. so Please upload the images into DAM and use it.
Regards,
Var
Views
Replies
Total Likes