Cms:contentload

(Difference between revisions)
Jump to: navigation, search
m
Line 6: Line 6:
  
 
<pre>
 
<pre>
 
+
  <cms:contentload collector="allInFolderPriorityDateDesc" param="${opencms.folder}news${*}.html|news|15" editable="true">
<cms:contentload collector="allInFolderPriorityDateDesc" param="${opencms.folder}news${*}.html|news|15" editable="true">
+
    <%-- create a date object from date value --%>
<%-- create a date object from date value --%>
+
    <li>
<li><a href="<cms:link><cms:contentshow element="${opencms.filename}" /></cms:link>" title="<cms:contentshow element="Title" />"></a>
+
      <a href="<cms:link><cms:contentshow element="${opencms.filename}" /></cms:link>" title="<cms:contentshow element="Title" />"></a>
<p><cms:contentshow element="Teaser" /></p>
+
      <p><cms:contentshow element="Teaser" /></p>
</li>
+
    </li>
</cms:contentload>
+
  </cms:contentload>
 
</pre>
 
</pre>

Revision as of 10:16, 26 March 2007

There is only a little documentation regarding usage of cms:contentload. This document hopes to expand on that.

Contentload is a tag that will let you load a CMS resource as an object, and manipulate it using jsp tags. More detail is available in the documentation included with OpenCms.

Here is an example where an asterisk is used for pattern matching in the param section:

  <cms:contentload collector="allInFolderPriorityDateDesc" param="${opencms.folder}news${*}.html|news|15" editable="true">
    <%-- create a date object from date value --%>	
    <li>
      <a href="<cms:link><cms:contentshow element="${opencms.filename}" /></cms:link>" title="<cms:contentshow element="Title" />"></a>
      <p><cms:contentshow element="Teaser" /></p>
    </li>
  </cms:contentload>
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox