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><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> , sort_order='reverse'<br> , review_state='published')[:5]);
<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> <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> <a href=""<br> tal:attributes="href obj/getURL;<br> title obj/Description"><br> <tal:block replace="structure here/newsitem_icon.gif"/>
<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>
<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> <span tal:replace="python:test(obj.Dcoument, obj.Dcoument, obj.getId)"> Extended Calendar Product </span><br> <span tal:replace="python:test(
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> <span tal:replace="python:test(obj.Body, obj.Body, obj.getId)"> Extended Calendar Product </span><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> <<a href="mailto:charlie@egenix.com">charlie@egenix.com</a>> 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>> Ciao,<br>><br>> sto cercando di visualizzare su un page template zope (che tra l'altro e'<br>> 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> >>> Python/Zope Consulting and Support ...
<a href="http://www.egenix.com/">http://www.egenix.com/</a><br>
>>> mxODBC.Zope.Database.Adapter
...
<a href="http://zope.egenix.com/">http://zope.egenix.com/</a><br> >>> mxODBC, mxDateTime, mxTextTools ... <a href="http://python.egenix.com/">http://python.egenix.com/</a><br>________________________________________________________________________
<br>2005-10-17: Released mxODBC.Zope.DA 1.0.9 <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