[opencms-dev] DocCenter not working in 8.5

dayv2005 dpipes at AimNTLS.com
Wed Oct 23 19:55:26 CEST 2013


This helped a lot. However, for me this doesn't seem to work with categories? 

It seems to work if you set show categories = false. 

Without categories it works almost perfectly. The only issue I have is with
the folder up icon. When click it doesn't go to the previous folder.

The code for it is here:
/system/modules/com.alkacon.opencms.v8.documentcenter/elements/doc_navigation.jsp

code:

// check if the link "up one folder" can be displayed
if (navSize > 1) {
  navElement = (CmsJspNavElement)navPath.get(navSize - 2);
  String link = navElement.getResourceName();

%>     <a href="<%=
CmsDocumentFactory.getLink(cms, link) %>"><img src="<%=
cms.link("/system/modules/com.alkacon.opencms.v8.documentcenter/resources/ic_folder_up.gif")
%>"
  alt="<%= messages.key("navigation.link.folderup") %>" title="<%=
messages.key("navigation.link.folderup") %>" /> <%
}


Seems as though CmsDocumentFactory.getLink(cms, link) call is returning the
correct link but it is adding this link onto the current url.


Example:

current url in browse
http://localhost:8080/opencms/opencms/demo/en/world-of-flowers/test-page/documents/driver/

after clicking "folder up"
http://localhost:8080/opencms/opencms/demo/en/world-of-flowers/test-page/documents/driver/demo/en/world-of-flowers/test-page/documents/

expected
http://localhost:8080/opencms/opencms/demo/en/world-of-flowers/test-page/documents/






--
View this message in context: http://opencms.996256.n3.nabble.com/DocCenter-not-working-in-8-5-tp23705p23717.html
Sent from the OpenCMS mailing list archive at Nabble.com.



More information about the opencms-dev mailing list