andre
unread,Jun 9, 2015, 3:11:29 PM6/9/15Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mmbase...@googlegroups.com
Author: andre
Date: 2015-06-09 21:11:28 +0200 (Tue, 09 Jun 2015)
New Revision: 46719
Modified:
openimages/trunk/src/main/webapp/mmbase/components/oip/tag.jspx
openimages/trunk/src/main/webapp/tag.jspx
Log:
fixes for search engine errors on tags
Modified: openimages/trunk/src/main/webapp/mmbase/components/oip/tag.jspx
===================================================================
--- openimages/trunk/src/main/webapp/mmbase/components/oip/tag.jspx 2015-03-29 18:28:26 UTC (rev 46718)
+++ openimages/trunk/src/main/webapp/mmbase/components/oip/tag.jspx 2015-06-09 19:11:28 UTC (rev 46719)
@@ -19,7 +19,8 @@
<oip:h2>Tags / <mm:field name="name" /></oip:h2>
- <mm:import externid="offset">0</mm:import>
+ <mm:import externid="offset" vartype="integer">0</mm:import>
+ <c:if test="${offset lt 0}"><mm:import id="offset" reset="true">0</mm:import></c:if>
<mm:import id="max">25</mm:import>
<mm:relatednodescontainer type="mediafragments" role="related" searchdirs="source">
Modified: openimages/trunk/src/main/webapp/tag.jspx
===================================================================
--- openimages/trunk/src/main/webapp/tag.jspx 2015-03-29 18:28:26 UTC (rev 46718)
+++ openimages/trunk/src/main/webapp/tag.jspx 2015-06-09 19:11:28 UTC (rev 46719)
@@ -20,6 +20,13 @@
</jsp:attribute>
<jsp:attribute name="head">
+ <mm:node referid="n">
+ <mm:nodeinfo type="type">
+ <c:if test="${_ ne 'tags'}">
+ <c:redirect url="/errorpages/404.jsp" />
+ </c:if>
+ </mm:nodeinfo>
+ </mm:node>
<!-- nothing here yet -->
</jsp:attribute>