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>