[Zope] personalize Home Page

Santagostino Pretina, Luca lsantagostino@activa3.net
Wed, 5 Jun 2002 09:15:53 +0200


Hi eric 
thanks for your answers, but I am encountering problem in understanding
it...(forgive me but I'm really new to zope..)

this is your code:
<dtml-with expr="CMF"> 
         <dtml-var cmf_news>
           </dtml-with>

I don't understand if CMF stands for the name of my cmf_site or for the path
to my folder/object and in this case what is the object? 
I mean, suppose I have an article in a folder called myFirstArticle and this
would be the path to it: cmf_site/MyNews/MyArticles/MyFirstArticle, and your
code becomes something like this:

<dtml-with expr="cmf_site/MyNews/MyArticles/MyFirstArticle"> 
         <dtml-var cmf_news>
           </dtml-with>

but then again: what is cmf_news? where do I get that variable from?
thanks again and I hope you or anyone else could help me with this.
thanks
Luca








-----Mensaje original-----
De: eric.n.dunn@bankofamerica.com [mailto:eric.n.dunn@bankofamerica.com]
Enviado el: martes, 04 de junio de 2002 14:03
Para: Santagostino Pretina, Luca
CC: zope@zope.org
Asunto: Re: [Zope] personalize Home Page




This is what I use to pull the last 3 dates from my squishdot site (without
stuff in parens)

<dtml-with expr="squishdot_site">    (squishdot folderish/object)
              <dtml-var articles_html>        (copied code from
"squishdot/rightbox_methods/prev_articles)
              </dtml-with>                             (close tag)

Same concept with my CMF site

<dtml-with expr="CMF">
         <dtml-var cmf_news>
           </dtml-with>


I pull both CMF News and Squishdot News to my front page.  Anyone posting to
 my CMF or Squishdot site will see there posting headline on the fron page.






"Santagostino Pretina, Luca" <lsantagostino@activa3.net> on 06/04/2002
06:35:31 AM

To:   "'zope@zope.org'" <zope@zope.org>
cc:
Subject:  [Zope] personalize Home Page



Hi list,
I am new to Zope and I am stuck with this problem:
I have created folders and subfolders and I now need to retrieve the content
of these subfolders and display it in the home page.
Let's say I have 4 different folders, each one has 3 subfolders and each
subfolder has a list of articles or news_items.
How can I import the content of the last article published in a specified
subfolders, in the homepage? or the last news_item published in a specified
subfolder into the index_html of the homepage?

thanks for helping
Luca


_______________________________________________
Zope maillist  -  Zope@zope.org
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )