Author: andre Date: 2010-07-22 14:14:21 +0200 (Thu, 22 Jul 2010) New Revision: 42973
Modified: mmweb/trunk/src/main/webapp/framework.jspx Log: show news in sidebar Modified: mmweb/trunk/src/main/webapp/framework.jspx =================================================================== --- mmweb/trunk/src/main/webapp/framework.jspx 2010-07-22 12:14:02 UTC (rev 42972) +++ mmweb/trunk/src/main/webapp/framework.jspx 2010-07-22 12:14:21 UTC (rev 42973) @@ -47,6 +47,7 @@ <mm:component name="mynews" block="list"> <mm:param name="max">${max}</mm:param> <mm:param name="offset">${offset}</mm:param> + <mm:param name="more">false</mm:param> </mm:component> <mm:import externid="mynews.total" id="total" from="request" /> @@ -64,21 +65,25 @@ <div id="sidebar"> <div> - page: ${page} - n: ${n} - <c:choose> <c:when test="${component eq 'mynews' and block eq 'news'}"> - <h3>Latest news</h3> + <mm:link page="list"> + <mm:frameworkparam name="component">mynews</mm:frameworkparam> + <h3><a href="${_}">Latest news</a></h3> + </mm:link> <mm:component name="mynews" block="list"> <mm:param name="max">3</mm:param> + <mm:param name="more">true</mm:param> </mm:component> </c:when> <c:otherwise> - <p>Eh, nix</p> + <p> </p> </c:otherwise> </c:choose> + page: ${page} + n: ${n} + </div> </div> </jsp:attribute> _______________________________________________ Cvs mailing list Cvs@lists.mmbase.org http://lists.mmbase.org/mailman/listinfo/cvs