
adam at RFXTechnologies
Oct 12, 2010, 6:54 AM
Post #3 of 7
(538 views)
Permalink
|
We are on Bricolage 1.11, looking at upgrading to 2.0 in the near future. I will let you know how things go for me at that juncture. I guess I am pretty much SOL 'til then? -----Original Message----- From: David E. Wheeler [mailto:david [at] kineticode] Sent: Tuesday, October 12, 2010 12:02 AM To: users [at] lists Subject: Re: burn_another again and again Are you using Bricolage 2.0? It's method of keeping track of calls to burn_another() *should* avoid this issue, I think. David On Oct 9, 2010, at 6:20 PM, Adam Wilson wrote: > Quick Synopsis: How can I call burn_another on a story that uses a template that calls burn_another, without activating the second burn? > > I am trying to make a template that adds links to the bottom of the story for the article that has a cover date before it and after it. > > I also need to republish these related stories, in case the order has been changed around or this is a new story. To do this, first time around, I added this to the template. > > % $burner->blaze_another( $previous_story ); > % $burner->blaze_another( $next_story ); > > Those of you who have tried this before might know why this was a bad idea. The problem I ran into is that this burned the story before and after. When those stories were burned, it burned the story both before and after(which means that now I am burning the current story twice), which started a trend that caused to have to kill everything on the box after 30 minutes when it became unresponsive to all requests. > > So, I added some logic: > <%perl> > if ($story->needs_publish()) { > $burner->blaze_another( $previous_story ); > $burner->blaze_another( $next_story ); > } > </%perl> > > However, this only burns another when I am previewing a story that has been modified. On preview, this is perfect, but when I try to publish, the other stories are not burned because it would seem the first thing that happens when you publish a story is that it is marked as published. I have been fighting with this one for a while, and cannot figure out a way to achieve my desired results. > > I am hoping that someone out there might have already cracked this nut, and will be willing to share their secrets. > > Thanx, > Adam Wilson > >
|