Author: andre
Date: 2010-07-13 21:53:47 +0200 (Tue, 13 Jul 2010)
New Revision: 42881
Added:
mmbase/trunk/applications/mynews/src/main/webapp/mmbase/components/mynews/list.jspx
mmbase/trunk/applications/mynews/src/main/webapp/mmbase/components/mynews/news.jspx
Log:
two new blocks for mynews
Added:
mmbase/trunk/applications/mynews/src/main/webapp/mmbase/components/mynews/list.jspx
===================================================================
---
mmbase/trunk/applications/mynews/src/main/webapp/mmbase/components/mynews/list.jspx
(rev 0)
+++
mmbase/trunk/applications/mynews/src/main/webapp/mmbase/components/mynews/list.jspx
2010-07-13 19:53:47 UTC (rev 42881)
@@ -0,0 +1,41 @@
+<div
+ xmlns:jsp="http://java.sun.com/JSP/Page"
+ xmlns:c="http://java.sun.com/jsp/jstl/core"
+ xmlns:fmt="http://java.sun.com/jsp/jstl/fmt"
+ xmlns:mm="http://www.mmbase.org/mmbase-taglib-2.0"
+ class="mm_c c_mynews c_b_mmweb_home ${requestScope.componentClassName}"
+ id="${requestScope.componentId}">
+
+ <jsp:output omit-xml-declaration="true" />
+
+ <mm:import externid="mag">default.mags</mm:import>
+ <mm:import externid="max">3</mm:import>
+ <mm:import externid="offset">0</mm:import>
+
+ <mm:cloud>
+
+ <h3 class="news"><a href="news.html">News</a></h3>
+
+ <mm:node number="$mag">
+ <mm:relatednodescontainer type="news" role="posrel"
searchdirs="destination">
+ <mm:sortorder field="date" direction="DOWN" />
+ <mm:maxnumber value="$max" />
+ <mm:offset value="$offset" />
+ <ul class="news nolist">
+ <mm:relatednodes>
+ <li>
+ <mm:link page="article" referids="_n...@n">
+ <mm:frameworkparam name="component">mynews</mm:frameworkparam>
+ <a href="${_}"><mm:field name="title" escape="inline" /></a>
+ </mm:link>
+ <mm:field name="date"><mm:time format="dd-MM-yyyy" /></mm:field>
-
+ <mm:field name="intro" escape="inline" />
+ </li>
+ </mm:relatednodes>
+ <li><a href="#">More news »»</a></li>
+ </ul>
+ </mm:relatednodescontainer>
+ </mm:node>
+
+ </mm:cloud>
+</div>
Added:
mmbase/trunk/applications/mynews/src/main/webapp/mmbase/components/mynews/news.jspx
===================================================================
---
mmbase/trunk/applications/mynews/src/main/webapp/mmbase/components/mynews/news.jspx
(rev 0)
+++
mmbase/trunk/applications/mynews/src/main/webapp/mmbase/components/mynews/news.jspx
2010-07-13 19:53:47 UTC (rev 42881)
@@ -0,0 +1,40 @@
+<div
+ xmlns:c="http://java.sun.com/jsp/jstl/core"
+ xmlns:fmt="http://java.sun.com/jsp/jstl/fmt"
+ xmlns:mm="http://www.mmbase.org/mmbase-taglib-2.0"
+ xmlns:jsp="http://java.sun.com/JSP/Page"
+ class="mm_c c_mynews b_news ${requestScope.componentClassName}"
+ id="${requestScope.componentId}">
+ <jsp:output omit-xml-declaration="true" />
+ <mm:cloud>
+ <mm:import externid="mag">default.mags</mm:import>
+ <mm:import externid="n" required="true" />
+
+ <mm:node number="$n">
+ <h1><mm:field name="title" /></h1>
+ <mm:field name="subtitle"><mm:isnotempty><h2><mm:write
/></h2></mm:isnotempty></mm:field>
+ <div class="intro">
+ <span class="date"><mm:field name="date"><mm:time format=":LONG"
/></mm:field></span>
+ <mm:field name="intro" escape="p,links" />
+ </div>
+ <mm:field name="body" escape="paragraph,links" />
+
+ <mm:relatednodes type="images" role="posrel" orderby="posrel.pos"
max="3">
+ <mm:first><h2>Images</h2></mm:first>
+ <mm:image template="s(200)" mode="img" />
+ </mm:relatednodes>
+
+ <mm:relatednodes type="urls" role="posrel" orderby="posrel.pos" max="3">
+ <mm:first><h2>Links</h2></mm:first>
+ <a href="${_node.url}"><mm:field name="description"/></a><br />
+ </mm:relatednodes>
+
+ <mm:relatednodes type="people">
+ <mm:first><h2>Authors</h2></mm:first>
+ <em><mm:field name="firstname" /><jsp:text> </jsp:text><mm:field
name="lastname" /></em><br />
+ </mm:relatednodes>
+
+ </mm:node>
+
+ </mm:cloud>
+</div>
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs