ok! (* 'in' inglese ;-) )<br>
<br>
=======================================================<br>
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<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>
and I toke the piece I need:<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>                                                                                     , sort_order='reverse'<br>                                                                                     , review_state='published')[:5]);
<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>        &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>                    &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>                        &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>

<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:<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(
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>                        &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>
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<div><span class="gmail_quote"><br>
<br>
On 28/02/06, <b class="gmail_sendername">Charlie Clark</b> &lt;<a href="mailto:charlie@egenix.com">charlie@egenix.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>On 2006-02-27 at 17:31:09 [+0100], <a href="mailto:mtzolo@gmail.com">mtzolo@gmail.com</a> wrote:<br>&gt; Ciao,<br>&gt;<br>&gt; sto cercando di visualizzare su un page template zope (che tra l'altro e'<br>&gt; l'home page index_html) l'ultima news inserita via plone.
<br><br>Ciao,<br><br>scrive al'inglese per favore.<br><br>Charlie Clark<br>--<br>Charlie Clark<br>eGenix.com<br><br>Professional Python Services directly from the Source<br> &gt;&gt;&gt; Python/Zope Consulting and Support ...&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href="http://www.egenix.com/">http://www.egenix.com/</a><br>
&gt;&gt;&gt; mxODBC.Zope.Database.Adapter
...&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href="http://zope.egenix.com/">http://zope.egenix.com/</a><br> &gt;&gt;&gt; mxODBC, mxDateTime, mxTextTools ...&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://python.egenix.com/">http://python.egenix.com/</a><br>________________________________________________________________________
<br>2005-10-17: Released mxODBC.Zope.DA 1.0.9&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://zope.egenix.com/">http://zope.egenix.com/</a><br><br>::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! ::::<br></blockquote></div><br>
<br clear="all"><br>-- <br>Quando sento Berlusconi dire che vuole trasformare lo stato in un'azienda...<br>Mi domando sempre quando inizierà l'OPA