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: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ken Ara
Sent: Thursday, September 29, 2005 1:59 PM
To: [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
[email protected]
http://postaria.com/cgi-bin/mailman/listinfo/coreblog-en
Unsubscription writing to [EMAIL PROTECTED]
_______________________________________________
COREblog-en mailing list
[email protected]
http://postaria.com/cgi-bin/mailman/listinfo/coreblog-en
Unsubscription writing to [EMAIL PROTECTED]