[Zope-DB] News Item properties

2006-02-27 Thread mtzolo
Ciao,

sto cercando di visualizzare su un page template zope (che tra l'altro
e' l'home page index_html) l'ultima news inserita via plone.

sono andato in 
/portal_skins/plone_portlets/
portlet_news


e ho preso il pezzo di codice che mi serviva:

 tal:define="results python:request.get('news', here.portal_catalog.searchResults( portal_type='News Item' , sort_on='Date'
 , sort_order='reverse' , review_state='published')[:5]);
		"  tal:condition="python:test(template.getId()!='news' and results, 1, 0)">News
 tal:attributes="class python:test(oddrow, 'portletContent even', 'portletContent odd')">
   tal:attributes="href obj/getURL;   title obj/Description">
 Extended Calendar Product etc etc etc


il fatto e' che otre al Title mi servirebbero anche i primi 500
caratteri della news (un abstract da mettere in home page col link alla
news intera)
ho provato con:
 Extended Calendar Product  Extended Calendar Product  Extended Calendar Product 
 Extended Calendar Product 
ma non riesco a beccare il contenuto ho cercato su manuali e su google e sul tab 'doc' di zope ma nulla



Matteo
___
Zope-DB mailing list
Zope-DB@zope.org
http://mail.zope.org/mailman/listinfo/zope-db


Re: [Zope-DB] News Item properties

2006-02-28 Thread Charlie Clark

On 2006-02-27 at 17:31:09 [+0100], [EMAIL PROTECTED] wrote:
> Ciao,
> 
> sto cercando di visualizzare su un page template zope (che tra l'altro e'
> l'home page index_html) l'ultima news inserita via plone.

Ciao,

scrive al'inglese per favore.

Charlie Clark
-- 
Charlie Clark
eGenix.com

Professional Python Services directly from the Source
 >>> Python/Zope Consulting and Support ...http://www.egenix.com/
 >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/
 >>> mxODBC, mxDateTime, mxTextTools ...http://python.egenix.com/

2005-10-17: Released mxODBC.Zope.DA 1.0.9http://zope.egenix.com/

::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! 
___
Zope-DB mailing list
Zope-DB@zope.org
http://mail.zope.org/mailman/listinfo/zope-db


Re: [Zope-DB] News Item properties

2006-02-28 Thread mtzolo
ok! (* 'in' inglese ;-) )

===
I'm trying to render the last new inserted via plone on a zope page template (that is the site main page, index_html ).
I went on
/portal_skins/
plone_portlets/
portlet_news
and I toke the piece I need:

 tal:define="results python:request.get('news', here.portal_catalog.searchResults( portal_type='News Item' , sort_on='Date'
 , sort_order='reverse' , review_state='published')[:5]);
		"  tal:condition="python:test(template.getId()!='news' and results, 1, 0)">News
 tal:attributes="class python:test(oddrow, 'portletContent even', 'portletContent odd')">
   tal:attributes="href obj/getURL;   title obj/Description">
 Extended Calendar Product etc etc etc


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)
I tryed with:
 Extended Calendar Product  Extended Calendar Product  Extended Calendar Product 
 Extended Calendar Product 
but I cannot show out the content... I have looked on references, on google and on zope 'doc' tab but nothing at all...






Matteo

On 28/02/06, Charlie Clark <[EMAIL PROTECTED]> wrote:
On 2006-02-27 at 17:31:09 [+0100], [EMAIL PROTECTED] wrote:> Ciao,>> sto cercando di visualizzare su un page template zope (che tra l'altro e'> l'home page index_html) l'ultima news inserita via plone.
Ciao,scrive al'inglese per favore.Charlie Clark--Charlie ClarkeGenix.comProfessional Python Services directly from the Source >>> Python/Zope Consulting and Support ...
http://www.egenix.com/
>>> mxODBC.Zope.Database.Adapter
...
http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ...http://python.egenix.com/
2005-10-17: Released mxODBC.Zope.DA 1.0.9http://zope.egenix.com/::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! 
-- Quando sento Berlusconi dire che vuole trasformare lo stato in un'azienda...Mi domando sempre quando inizierà l'OPA
___
Zope-DB mailing list
Zope-DB@zope.org
http://mail.zope.org/mailman/listinfo/zope-db


Re: [Zope-DB] News Item properties

2006-02-28 Thread Charlie Clark

On 2006-02-28 at 09:40:29 [+0100], [EMAIL PROTECTED] wrote:
> 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)
> I tryed with:
> 
>  Extended Calendar Product 
>  Extended Calendar Product 
>  Extended Calendar Product 
>  Extended Calendar Product 
> 
> 
> but I cannot show out the content... I have looked on references, on google
> and on zope 'doc' tab but nothing at all...

Please redirect your question to the Plone list. This list is for questions 
about Zope and relational databases and the ZODB.

Charlie
-- 
Charlie Clark
eGenix.com

Professional Python Services directly from the Source
 >>> Python/Zope Consulting and Support ...http://www.egenix.com/
 >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/
 >>> mxODBC, mxDateTime, mxTextTools ...http://python.egenix.com/

2005-10-17: Released mxODBC.Zope.DA 1.0.9http://zope.egenix.com/

::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! 
___
Zope-DB mailing list
Zope-DB@zope.org
http://mail.zope.org/mailman/listinfo/zope-db