[Radiant] Gem dependencies

2009-01-18 Thread Manuel Meurer
How do I set up gem dependencies in Radiant? When I include a config.gem 'foo' in environment.rb, I get the following error: /config/environment.rb:88: private method `gem' called for #Radiant::Configuration:0x11e9870 (NoMethodError) Manuel ___ Radiant

[Radiant] Cycle extension

2009-01-14 Thread Manuel Meurer
Hi all! Just wanted to tell you quickly about an extension I wrote a couple of days ago that might be useful to somebody else as well. http://github.com/manuelmeurer/radiant-cycle-extension It basically makes the ActionView::Helpers::TextHelper::cycle function available through the r:cycle tag,

Re: [Radiant] Cycle extension

2009-01-14 Thread Manuel Meurer
Manuel Meurer wrote: Hi all! Just wanted to tell you quickly about an extension I wrote a couple of days ago that might be useful to somebody else as well. http://github.com/manuelmeurer/radiant-cycle-extension It basically makes the ActionView::Helpers::TextHelper::cycle function available

Re: [Radiant] Edit History Extension

2009-01-05 Thread Manuel Meurer
Wow, lots of ideas here. I will go for the acts_as_versioned plugin as Andreas suggested. Once that is working we can think about saving incremental changes, different published versions etc. Tim, why would you like the git option better? For me it seems cleaner to have all your stuff in one

[Radiant] Edit History Extension

2009-01-05 Thread Manuel Meurer
Hello world. I was thinking about creating an extension that saves the edit history for pages, layouts, snippets etc. That way you could go back to previous versions, perhaps make diffs between versions etc. Has something like that ever been done before? (Wow, what a dramatic sounding

Re: [Radiant] Localization

2009-01-04 Thread Manuel Meurer
Hi all! I am currently searching for a way to have a Radiant site with several languages (on the actual site, not the back-end). Searching on Github I found the following extensions: http://github.com/peburrows/translator/ http://github.com/cradle/radiant-translator-extension/ (seems to be an

Re: [Radiant] RSS Reader Extension and Wordpress Blogs

2008-11-24 Thread Manuel Meurer
Hi Patrick, Looks like a bug in the extension. In lib/rss_reader.rb, it tries to read from the url (http://example.com/?feed=rss2 in your case), but just looks at the host and port (http://example.com:80 in your case) and dismisses the url parameters. The Github user bryanl has forked the

Re: [Radiant] Could not load extension from file:

2008-11-19 Thread Manuel Meurer
Hi Michael, Could you run the rake task with --trace and post the output? Manuel On Wed, Nov 19, 2008 at 11:10 PM, Michael Krisher [EMAIL PROTECTED] wrote: Hello, I am trying deploying my first Radiant site and am running into issues when trying to start the server/console/whatever and

[Radiant] Access the request object in tags

2008-11-17 Thread Manuel Meurer
Hi! I've had a problem reoccuring in a couple of extensions and was not sure if it was a conceptual error on my side or if something was lacking in Radiant's tag system. I solved this problem now and wanted to share it to get some feedback from you guys. Take the 'url' tag from the standard tags

Re: [Radiant] Access the request object in tags

2008-11-17 Thread Manuel Meurer
, Instead of render :text = @page.render, try @page.process(request, response); @performed_render = true. Sean Manuel Meurer wrote: Hi! I've had a problem reoccuring in a couple of extensions and was not sure if it was a conceptual error on my side or if something was lacking in Radiant's

[Radiant] Captcha

2008-10-27 Thread Manuel Meurer
Did anyone ever get the simple_captcha plugin (http://expressica.com/simple_captcha/), or any other captcha plugin for that matter, to work with Radiant, i.e. show a captcha from rendering a tag? I'm having difficulties with that, since the view helpers of the plugin want to access the session,

[Radiant] Re: Problem using children:each and the Dynamic Image extension

2008-10-26 Thread Manuel Meurer
Finally found the cause for this problem. Change the file lib/dynamic_image.rb in the Dynamic Image extension: #13 is config = tag.attr but should be config = tag.attr.dup Manuel On Sat, Oct 4, 2008 at 4:29 PM, Manuel Meurer [EMAIL PROTECTED] wrote: Hi! I'm experiencing some strange behavior

Re: [Radiant] [ANN] Conditional Tags Extension

2008-10-25 Thread Manuel Meurer
Ok, you're right. For me, r:if content exists? would not feel right, though. Manuel On Sat, Oct 25, 2008 at 8:35 PM, Chris Parrish [EMAIL PROTECTED] wrote: Manuel Meurer wrote: I think that there is a place for these tags and I'd love it if there was an easy way to use this to create both

Re: [Radiant] parameterized_snippets extension

2008-10-21 Thread Manuel Meurer
Fixed, thanks for testing. Please grab a fresh copy from http://github.com/manuelmeurer/radiant-parameterized-snippets-extension/ Manuel On Tue, Oct 21, 2008 at 12:10 PM, Simon Josi [EMAIL PROTECTED] wrote: I've got a case where parameters to snippets are not availabe. It occurs when I call a

Re: [Radiant] Radiant tag errors

2008-10-18 Thread Manuel Meurer
I agree, Jim. You should only see the 500 page in development mode. In production mode, the message of the thrown error is shown directly on the page instead of the rendered tag. No need to poke around in page_context.rb, unless it's important for you to have the same behavior in development mode.

Re: [Radiant] [ANN] Updated fork of radiant-mail-to-extension

2008-10-18 Thread Manuel Meurer
Done. Manuel On Sat, Oct 18, 2008 at 12:49 PM, Manuel Meurer [EMAIL PROTECTED] wrote: Will do. Manuel On Sat, Oct 18, 2008 at 12:00 PM, Casper Fabricius [EMAIL PROTECTED] wrote: Looks like something I could use. How does it work? Could add some examples and explain about any limitations

Re: [Radiant] [ANN] Updated fork of radiant-mail-to-extension

2008-10-18 Thread Manuel Meurer
will be accepted! Sean Manuel Meurer wrote: Jepp, I found that out a minute ago as well. Never used that feature, though. It would still be possible to do something like Casper suggested, but to do it cleanly you would have to filter out the r:var name=../r:var part when calling r:yield

Re: [Radiant] navigation tag question

2008-10-17 Thread Manuel Meurer
be possible or advisable to modify the navigation tag to be smarter as to what it highlights as being the active link? On Fri, Oct 17, 2008 at 8:44 AM, Manuel Meurer [EMAIL PROTECTED] wrote: I found the r:navigation tag become too limited to do that kind of stuff. See below for an example of how

Re: [Radiant] slug inside url_matches

2008-10-17 Thread Manuel Meurer
I patched Radius so that you can use tags as attributes in other tags. (Posted to this list five days ago) Extremely useful and only a couple of lines have to be changed actually. If anyone is interested I can make a patch. Manuel On Thu, Oct 16, 2008 at 7:12 PM, Chris Parrish [EMAIL PROTECTED]

Re: [Radiant] Radiant tag errors

2008-10-17 Thread Manuel Meurer
What exactly do you mean by messes up a radiant tag? Do you have an example? Manuel On Fri, Oct 17, 2008 at 7:00 PM, Joe Van Dyk [EMAIL PROTECTED] wrote: Right now, when an editor messes up a radiant tag, a 500 page gets rendered. Would it be possible to display the page content, except for

Re: [Radiant] Nested tags

2008-10-17 Thread Manuel Meurer
Here you go: http://github.com/manuelmeurer/radius-improved/tree/master Manuel On Fri, Oct 17, 2008 at 10:15 PM, Joe Van Dyk [EMAIL PROTECTED] wrote: On Sat, Oct 11, 2008 at 3:59 PM, Manuel Meurer [EMAIL PROTECTED] wrote: I am using an extension that gives me parameterized snippets (like

Re: [Radiant] Radiant tag errors

2008-10-17 Thread Manuel Meurer
UndefinedTagError.new(name) end Guess it's just a preference thing. I like strong validation. Manuel On Fri, Oct 17, 2008 at 11:54 PM, Joe Van Dyk [EMAIL PROTECTED] wrote: Makes sense -- why wouldn't that be that way by default? Joe On Fri, Oct 17, 2008 at 1:37 PM, Manuel Meurer [EMAIL

Re: [Radiant] [ANN] Updated fork of radiant-mail-to-extension

2008-10-17 Thread Manuel Meurer
Yep, I use r:var / in my parameterized snippets extension: http://github.com/manuelmeurer/radiant-parameterized-snippets-extension/ The idea originates from here, though: http://www.nabble.com/Snippets-with-Parameter(s)-td19772449.html BTW, anyone heard anything about a r:var / Radius tag? Or

Re: [Radiant] Radiant tag errors

2008-10-17 Thread Manuel Meurer
it be better to catch those errors and insert the error message directly into page content? Joe On Fri, Oct 17, 2008 at 3:44 PM, Manuel Meurer [EMAIL PROTECTED] wrote: From radius.rb #284 # Like method_missing for objects, but fired when a tag is undefined. # Override in your own Context

[Radiant] Nested tags

2008-10-11 Thread Manuel Meurer
I am using an extension that gives me parameterized snippets (like here: http://www.ruby-forum.com/topic/125007#601242). Now, if I pass a value into a snippet, I would like to be able to pass it on to a tag as a parameter, which isn't currently possible in Radius. E.g., I want to do this: Page:

[Radiant] Problem using children:each and the Dynamic Image extension

2008-10-04 Thread Manuel Meurer
Hi! I'm experiencing some strange behavior using the children:each tag and the Dynamic Image extension (http://github.com/narced133/radiant-dynamic-image-extension) I have a page with, say, 3 subpages and implement the following code in the main page: r:children:each r:image size=13