
leggn at denison
Oct 25, 2010, 10:11 AM
Post #7 of 10
(892 views)
Permalink
|
On 10/25/2010 12:59 PM, Paul Orrock wrote: > On 24/10/2010 00:21, David E. Wheeler wrote: >> On Oct 22, 2010, at 1:07 PM, Nick Legg wrote: >> >>> Hi, >>> >>> I wonder if anyone has any ideas for me... my problem is this: >>> >>> Suppose we have a published media asset and a story that relates to >>> it. A user checks out that media asset and uploads a new version >>> with a different file name, so the media's slug changes. The user >>> publishes the updated media and the old version is expired. The >>> link in the story is now broken - the story hasn't been re-burned >>> since the slug of the related media changed. >>> >>> I want to write a template or some perl to utilize the Bric API so I >>> can search out any stories relating to the current media asset and >>> trigger them to be republished. That's easy to do, but is there a >>> supported way to run such code without hacking the publish() method >>> in Burner.pm to call my custom script? >> >> I think Paul Orrock has a patch that adds burner support for media. >> Paul, is that somewhere in your fork? I don't see a branch for it… >> > > It never made it into the fork, since too much code has changed > between the version I wrote it for (1.10.1) and version 2 to make it a > simple insertion. I'll dig out the patch and review it and see what I > can come up with. > > Are you using Mason or a PHP burner ? > > regards, > > Paul Hi Paul, I'm using Mason on Bric 1.10.9. Thanks, Nick
|