Hallo,
habe ein Portlet, das mir Termine eines Ordners anzeigt, leider alle. Wie kann ich es einrichten, dass nur die veröffentlichten und nicht abgelaufenen Termine angezeigt werden?
Hier der Code:
HTML
		
					
				<html xmlns:tal="http://xml.zope.org/namespaces/tal"
      xmlns:metal="http://xml.zope.org/namespaces/metal"
      i18n:domain="plone">
<body>
<div metal:define-macro="portlet"
	tal:define="getInfoFor python:wtool.getInfoFor; related python:here.computeRelatedItems();"
	tal:condition="python:related">
      <dl class="portlet" id="portlet-related" align="right"> 
        <dl class="portletHeader">
            Termine
        </dl>
        <dd class="portletItem odd" style="font-size:smaller">
        <tal:allowed condition="isViewTemplate">
        <tal:relatedItems>
            <tal:block>
                <ul class="visualNoMarker">
                    <tal:related tal:repeat="item related"
		                 tal:define="use_view_action site_properties/typesUseViewActionInListings|python:();">
                        <li tal:define="
                                desc                item/Description;
                                item_type item/portal_type;
                                item_type_class python: 'visualIcon contenttype-' + normalizeString(item_type);
                                item_wf_state       item/review_state|python: getInfoFor(item, 'review_state', '');
                                item_wf_state_class python: 'state-' + normalizeString(item_wf_state);
				item_url           item/absolute_url;
				item_url           python:test((item_type in use_view_action), item_url+'/view', item_url)">
                            <span tal:attributes="class item_type_class">
                            <a href="" class=""
                                tal:attributes="href  item_url;
                                                title item/Description;
                                                class string: $item_wf_state_class visualIconPadding"
                                tal:content="item/pretty_title_or_id">
                                Related Item
                            </a>
                            </span>
                    </tal:related>
                    [/list]
            </tal:block>
        </tal:relatedItems>
        </tal:allowed>
	</dd>
        <dd class="portletFooter">
            buchen...
        </dd>
    </dl>
</div>
</body>
</html>
	
			Alles anzeigen