Thanks David. That seems to be working now. However, I'm
getting a 32-levels deep recurrence error in a different
template now. Basically, I'm fetching a list of stories
with the Bric API and I want to render each one in the list
using display_element. What's the best way to fetch the
associated container element for each of the stories in the
list?
________________________________
From: David E. Wheeler [mailto:david kineticode.com]
Sent: Wed 2/28/2007 6:16 PM
To: users lists.bricolage.cc
Subject: Re: nested story templates
On Feb 28, 2007, at 14:16, Beaudet, David P. wrote:
> Hmmm.... When I try this method, I get the error:
>
> Can't locate object method "is_container" via
package
> "Bric::Biz::Asset::Business::Story"
Sorry, make that:
for my $rel_event ($element->get_elements('event')) {
local $story = $rel_event->get_related_story;
$burner->display_element($rel_event);
}
Best,
David
|