RE: Out-of-blog experience

"Kate Legere" <[email protected]>
Newsgroups gmane.comp.python.zope.coreblog.english
Message-ID <200509291701453.SM01144@CETSKL>
Try ---
<dtml-comment>### writers_circle_contents is the COREBlog ###</dtml-comment>

<dtml-with writers_circle_contents>
 
     <dtml-comment>### Content block ###</dtml-comment>
       
       <dtml-call "REQUEST.set('noheader',1)">
       <dtml-call "REQUEST.set('noextendlink',1)">
       <dtml-call "REQUEST.set('nocomment',1)">
       <dtml-call "REQUEST.set('nocommentform',1)">

        <dtml-unless top_days>
            <dtml-call "REQUEST.set('top_days',4)">
        </dtml-unless top_days>

<span class="heading1">Teen Writer's Circle</span>
  <dtml-in "writers_circle_contents.rev_day_entry_items(count=top_days)">
      <dtml-var entry_body>
  <dtml-else>
    There are no entries.
  </div>
 </dtml-in>
</dtml-with>

It works in our site.

Katie

-----Original Message-----
From: coreblog-en-bounces-/9qXvnWia/9Wk0Htik3J/[email protected]
[mailto:coreblog-en-bounces-/9qXvnWia/9Wk0Htik3J/[email protected]] On Behalf Of Ken Ara
Sent: Thursday, September 29, 2005 1:59 PM
To: coreblog-en-/9qXvnWia/9Wk0Htik3J/[email protected]
Subject: [COREblog-en] Out-of-blog experience

Hi!

I need to be able to display items from the blog
elsewhere in my Zope site.

I am using the codesyntax-modified COREBlog.
 
My COREBlog is located at /xyz/blog.

>From /xyz I tried:

<dtml-with blog>
<dtml-var recent_entries>
</dtml-with>

That gave me:
KeyError: 'recent_entries'
So I knew something was strange. 

Then I tried:

<dtml-var blog>

That gave me:
[<mybrains instance at 109d7790>, <mybrains instance
at 109d75f0>, <mybrains instance at 109d77d0>,
<mybrains instance at 109d7630>]
Fair enough, my COREBlog has four entries... 

So I tried:

<dtml-in blog>
<dtml-var recent_entries>
</dtml-in>

That gave me 4 times the four entries.

Finally, this gave me what I wanted :

<dtml-in blog size="1">
<dtml-var recent_entries>
</dtml-in>

But why? Any insight appreciated,

Ken






		
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com
_______________________________________________
COREblog-en mailing list
COREblog-en-/9qXvnWia/9Wk0Htik3J/[email protected]
http://postaria.com/cgi-bin/mailman/listinfo/coreblog-en
Unsubscription writing to coreblog-en-leave-/9qXvnWia/9Wk0Htik3J/[email protected]

_______________________________________________
COREblog-en mailing list
COREblog-en-/9qXvnWia/9Wk0Htik3J/[email protected]
http://postaria.com/cgi-bin/mailman/listinfo/coreblog-en
Unsubscription writing to coreblog-en-leave-/9qXvnWia/9Wk0Htik3J/[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.