<!--
    Produces: 'items' for images
    Needs: a request context 'drawer', containing a listcontainer 'query'.
-->
<mm:context
    xmlns:jsp="http://java.sun.com/JSP/Page"
    xmlns:mm="http://www.mmbase.org/mmbase-taglib-2.0"
    id="drawer" scope="request">
  <jsp:output omit-xml-declaration="yes" />
  <mm:content type="text/xml">
    <mm:notpresent referid="query">
      <mm:cloud method="asis">
        <mm:listnodescontainer id="query" type="flashobjects" />
      </mm:cloud>
    </mm:notpresent>
    <mm:import externid="max" reset="true">100</mm:import>
    <mm:listnodescontainer referid="query">
      <mm:sortorder field="number" direction="down" />
      <media>flash</media>
      <items>
        <mm:context>
          <mm:include page="uploadfields.jspx">
            <mm:param name="media">flash</mm:param>
            <mm:param name="nodetype">flashobjects</mm:param>
          </mm:include>
          <mm:listnodes id="o">
            <resource id="${o.number}">
              <media>flash</media>
              <uri><mm:url page="/mmbase/kupu/mmbase/icons/flash.png" referids="_node@o" /></uri>
              <title><mm:field name="title" /></title>
              <size><mm:field name="filesize" />b</size>
              <height>100</height>
              <width>100</width>
              <icon><mm:url page="/mmbase/style/icons/application/x-shockwave-flash.gif" /></icon>
              <preview><mm:function name="url" /></preview>
            </resource>
          </mm:listnodes>
        </mm:context>
      </items>
    </mm:listnodescontainer>
  </mm:content>
</mm:context>
