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>&lt;div metal:define-macro=&quot;portlet&quot;<br>     tal:define=&quot;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>                &quot;<br>                 <br>     tal:condition=&quot;python:test(template.getId()!='news' and results, 1, 0)&quot;&gt;<br><br>    &lt;div class=&quot;portlet&quot; id=&quot;portlet-news&quot;&gt;<br><br>        &lt;h5 i18n:translate=&quot;box_news&quot;&gt;News&lt;/h5&gt;
<br><br><br><br>        &lt;div class=&quot;portletBody&quot;&gt;<br><br>            &lt;tal:block tal:repeat=&quot;obj results&quot;&gt;<br><br>                &lt;div tal:define=&quot;oddrow repeat/obj/odd&quot;<br>                     tal:attributes=&quot;class python:test(oddrow, 'portletContent even', 'portletContent odd')&quot;&gt;
<br><br><br><br>                    &lt;a href=&quot;&quot;<br>                       tal:attributes=&quot;href obj/getURL;<br>                                       title obj/Description&quot;&gt;<br>                        &lt;tal:block replace=&quot;structure here/newsitem_icon.gif&quot;/&gt;
<br><br><br>                        &lt;span tal:replace=&quot;python:test(obj.Title, obj.Title, obj.getId)&quot;&gt; Extended Calendar Product &lt;/span&gt;<br>                    &lt;/a&gt;<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>                        &lt;span tal:replace=&quot;python:test(obj.Dcoument, obj.Dcoument, obj.getId)&quot;&gt; Extended Calendar Product &lt;/span&gt;<br>                        &lt;span tal:replace=&quot;python:test(
<br>obj.Text, obj.Text, obj.getId)&quot;&gt; Extended Calendar Product &lt;/span&gt;<br>                        &lt;span tal:replace=&quot;python:test(obj.Content, obj.Content, obj.getId)&quot;&gt; Extended Calendar Product &lt;/span&gt;
<br><br>                        &lt;span tal:replace=&quot;python:test(obj.Body, obj.Body, obj.getId)&quot;&gt; Extended Calendar Product &lt;/span&gt;<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