Ciao,<br>
<br clear="all">
I'm trying to render the last new inserted via plone on a zope page template (that is the site main page, index_html ).<br>
I went on<span class="q"><br>
<strong>/<a href="http://adelchi.org:9673/Engim0.2/portal_skins/manage_workspace" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">portal_skins</a>/<a href="http://adelchi.org:9673/Engim0.2/portal_skins/plone_portlets/manage_workspace" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
plone_portlets</a>/<a href="http://adelchi.org:9673/Engim0.2/portal_skins/plone_portlets/portlet_news/manage_workspace" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
portlet_news</a></strong><br><br></span>
and I toke the piece I need:<span class="q"><br>
<br>
<pre><div metal:define-macro="portlet"<br> tal:define="results python:request.get('news', here.portal_catalog.searchResults( portal_type='News Item'<br> , sort_on='Date'
<br><br><br> , sort_order='reverse'<br> , review_state='published')[:5]);
<br><br><br>                "<br> <br> tal:condition="python:test(template.getId()!='news' and results, 1, 0)"><br><br> <div class="portlet" id="portlet-news"><br><br> <h5 i18n:translate="box_news">News</h5>
<br><br><br><br> <div class="portletBody"><br><br> <tal:block tal:repeat="obj results"><br><br> <div tal:define="oddrow repeat/obj/odd"<br> tal:attributes="class python:test(oddrow, 'portletContent even', 'portletContent odd')">
<br><br><br><br> <a href=""<br> tal:attributes="href obj/getURL;<br> title obj/Description"><br> <tal:block replace="structure here/newsitem_icon.gif"/>
<br><br><br> <span tal:replace="python:test(obj.Title, obj.Title, obj.getId)"> Extended Calendar Product </span><br> </a><br><br>etc etc etc<br></pre></span>
<br>
the fact is that I should have also the first 500 characters of the
news (an abstract to put in the home page with a link of the entirely
news)<br>
I tryed with:<span class="q"><br>
<pre> <span tal:replace="python:test(obj.Dcoument, obj.Dcoument, obj.getId)"> Extended Calendar Product </span><br> <span tal:replace="python:test(
<br>obj.Text, obj.Text, obj.getId)"> Extended Calendar Product </span><br> <span tal:replace="python:test(obj.Content, obj.Content, obj.getId)"> Extended Calendar Product </span>
<br><br> <span tal:replace="python:test(obj.Body, obj.Body, obj.getId)"> Extended Calendar Product </span><br><br><br></pre></span>
but I cannot show out the content... I have looked on references, on google and on zope 'doc' tab but nothing at all...<br>
<br>
<br>
<br>
Matteo