Class GetMediaItemsTag

  • All Implemented Interfaces:
    javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.SimpleTag

    @Deprecated
    public class GetMediaItemsTag
    extends GetMediaItemVersionsTag
    Deprecated.
    please use GetMediaItemVersionsTag instead. This tag will be removed in a future release
    This tag returns the media items that are the result of the search based on the given search criteria. The attributes of the tag represent the attributes of the MediaItemFilter that are used to define the search criteria of the search query. Example of usage:
    
     <wm:getmediaitems var="intermediateResult"
       contenttypes="article,image"
       andterms="apple,banana"
       orterms="dog,cat"
       andnotterms="car,bicycle"
       resultrange="0,4"
       sortoptions="mostviewed"
       sortascending="false"
       publicationdatefrom="1/6/2014"
       publicationdateto="1/12/2014"
       referenceddatabaseentity="105888"
       referencedresourceinstance="2"
       excludemediaitemids="45"
     />
    
     <c:forEach var="mediaItem" items="${intermediateResult}">
       <c:set var="mediaItemVersion" value="${mediaItem.current}" />
       <c:if test="${not empty mediaItemVersion}">
           <h2>title: ${mediaItemVersion.title}</h2></br>
       </c:if>
     </c:forEach>
    
     
    • Constructor Detail

      • GetMediaItemsTag

        public GetMediaItemsTag()
        Deprecated.
    • Method Detail

      • doTag

        public void doTag()
                   throws javax.servlet.jsp.JspException
        Deprecated.
        Specified by:
        doTag in interface javax.servlet.jsp.tagext.SimpleTag
        Overrides:
        doTag in class GetMediaItemVersionsTag
        Throws:
        javax.servlet.jsp.JspException
        See Also:
        SimpleTagSupport.doTag()