I think you're right, I've just discovered issues with other extensions that are caused by Radiant's caching mechanism. Namely the comments extension. It didn't have any error handling included and leaving out required fields raised an exception. I hacked it a little to put the errors in the get request because I can't access the params, flash or session hashes in Radiant. It took a while to figure out but I ended up installing the back door extension and calling @request.request_parameters["error"] in my layout. The problem is, radiant caches the pages so the error continues to show up until I delete the page cache. I'll see if anyone on the mailing list can help.
On Sun, Apr 13, 2008 at 6:17 AM, Marco Otte-Witte <[EMAIL PROTECTED]> wrote: > Hi Chris, > > I just tested it and believe that this is a caching issue. When I added > the two snippets, first only 1 of the 2 code snippets was highlighted. > However, after deleting Radiant's page cache (a few times) everything worked > fine. I don't really understand the issue completely yet, but try deleting > your cache and mayybe restart the server. > > My test: > > <r:code language="ruby"> > class Test > def test > puts "do" > end > end > </r:code> > > fddsfdsfsdfsdfsdfsdf > > <r:code language="ruby"> > class Test2 > def test2 > puts "do" > end > end > </r:code> > > rendered two highlighted code snippets. If you still experience problems > or find a bug, it would be great if you could let me know! > > Marco > > Am 12.04.2008 um 20:42 schrieb Chris Barnes: > > Hi, I couldn't find where to post this question. I'm using your syntax > highlighter extension for Radiant and if I add a code tag more than twice in > a single page, it doesn't highlight anything. Can you help with this? > > -- > Chris Barnes > http://www.randomutterings.com > > > -- Chris Barnes http://www.randomutterings.com _______________________________________________ Radiant mailing list Post: [email protected] Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
