Thank you Kate. Your solution is prettier than a
nested dtml-in, for sure!
I am going to have a look at the source to understand
why it works to visit the URL '/blog/recent_entries'
but not when I do '<dtml-with blog><dtml-var
recent_entries></dtml-with>'.
I think that COREblog is descended from Catalog and
that causes some namespace weirdness.
Anyone?
--- [EMAIL PROTECTED] wrote:
> Date: Thu, 29 Sep 2005 16:57:21 -0400
> From: "Kate Legere" <[EMAIL PROTECTED]>
> Subject: RE: [COREblog-en] Out-of-blog experience
>
> 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
>
=== message truncated ===
__________________________________
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]