Is it possible to download a zip file from the top nav section, if possible what configuration should i do in my topcomponent
here is my topnav component code.....
<c:when test="${properties.isHierarchy}">
<% int absParent = properties.get("absParent", 2);
int depth = properties.get("depth", 3);
PageFilter filter = new PageFilter(request);
Navigation nav = new Navigation(currentPage, absParent, filter, depth);
String xs = Doctype.isXHTML(request) ? "/" : "";
for (Navigation.Element e : nav) {
Page p=e.getPage();
ValueMap navPageProperties=p.getProperties();
Boolean s=navPageProperties.get("disablepage", Boolean.class);
Boolean s1=navPageProperties.get("open", Boolean.class);
switch (e.getType()) {
case NODE_OPEN:
%>
<ul class="dropdown-menu">
<%
break;
case ITEM_BEGIN:
%>
<li>
<% if(s!=null && s == true){
if(s1!=null && s1 == true){ %>
<a target='_blank' href="#" title="<%= xssAPI.encodeForHTML(e.getTitle())%>"
class="hover-effect"><%= xssAPI.encodeForHTML(e.getTitle())%> </a>
<%}
else{ %>
<a href="#" title="<%= xssAPI.encodeForHTML(e.getTitle())%>"
class="hover-effect"><%= xssAPI.encodeForHTML(e.getTitle())%> <span class="caret"></span></a>
<%}
} else {
if(s1!=null && s1 == true){ %>
<a target='_blank' href="<%=xssAPI.getValidHref(e.getPath())%>.html"
title="<%= xssAPI.encodeForHTML(e.getTitle())%>"
class="hover-effect"><%= xssAPI.encodeForHTML(e.getTitle())%> </a>
<%}
else{ %>
<a href="<%=xssAPI.getValidHref(e.getPath())%>.html"
title="<%= xssAPI.encodeForHTML(e.getTitle())%>"
class="hover-effect"><%= xssAPI.encodeForHTML(e.getTitle())%> </a>
<% }
}
break;
case ITEM_END: %>
</li>
<% break;
case NODE_CLOSE: %>
</ul>
<% break;
}
}
%>
</c:when>
Views
Replies
Total Likes
Of course - if this is your requirement - you can modify the JSP to include code to download a ZIP file.
We have a communtiy article that will help you: That is -- point you in the right direction.
https://helpx.adobe.com/experience-manager/using/downloading-dam-assets.html
This talks about How To create a download link that invokes an AEM servlet that returns a DAM Asset in a ZIP. .
In your use case - please the link in the JSP of TopNav.
Hope this helps...
Views
Replies
Total Likes