[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 # (NoMethodError) Manuel ___ Radiant mailing list Post: Radiant@r

Re: [Radiant] Cycle extension

2009-01-14 Thread Manuel Meurer
Oh, bummer. I thought I checked the standard tags. Well then, use the built in tag I guess... Manuel On Wed, Jan 14, 2009 at 6:22 PM, Sean Cribbs wrote: > Radiant already includes an tag which essentially does the same > thing, but doesn't use the helper. > > Sean > &

[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 tag, so you ca

Re: [Radiant] Edit History Extension

2009-01-07 Thread Manuel Meurer
holas > > > On Wed, Jan 7, 2009 at 7:46 AM, Tim Gossett wrote: >> On Mon, Jan 5, 2009 at 12:09 PM, Manuel Meurer >> wrote: >> >>> Tim, why would you like the git option better? For me it seems cleaner to >>> have all your stuff in one place, not the p

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 place

[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 question...)

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 exa

Re: [Radiant] 1st Extension - Class Call from module newext_tags.rb

2008-12-29 Thread Manuel Meurer
Hi Bartee (or Lamar?), Where are the files newext_tags.rb and newext.rb located? When you declare methods in newext.rb (which should be located somewhere in \lib) you should declare them as class methods (def self.my_method) to be able to call them like this with Newext.my_method. You don't need

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 extensi

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 r

Re: [Radiant] Access the request object in tags

2008-11-17 Thread Manuel Meurer
t; Manuel, > > 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 >&

[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

[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, but

[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 exper

Re: [Radiant] [ANN] Conditional Tags Extension

2008-10-25 Thread Manuel Meurer
Ok, you're right. For me, 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 >>&

Re: [Radiant] [ANN] Conditional Tags Extension

2008-10-25 Thread Manuel Meurer
>> 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 if_ and unless_ tags. Something like: >> >> conditional_tags "my_tag" do |tag| >> #return a boolean >> false >> end >> >> which would then create if_my_tag and unless_my_tag tags

Re: [Radiant] parameterized_snippets extension

2008-10-23 Thread Manuel Meurer
clone > git://github.com/manuelmeurer/radiant-parameterized-snippets-extension.gitparameterized-snippets > and the files were downloaded from the repository but > I cannot get it to work. > > thanks, > > Luis > > On Tue, Oct 21, 2008 at 9:44 PM, Manuel Meurer <[EMAI

Re: [Radiant] parameterized_snippets extension

2008-10-22 Thread Manuel Meurer
93 > > The latter variant is absolutely perfect mor me though, thank you. > > > /simon > > On Wed, 22 Oct 2008 04:44:32 +0200 > "Manuel Meurer" <[EMAIL PROTECTED]> wrote: > >> Fixed, thanks for testing. >> Please grab a fresh copy from >&g

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

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

2008-10-18 Thread Manuel Meurer
<[EMAIL PROTECTED]> wrote: > Actually, you wouldn't. That block won't be called until it hits /> in the snippet. I think adding arbitrary attributes on the snippet tag > seems reasonable. Well-designed and -specced patches will be accepted! > > Sean > >

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

2008-10-18 Thread Manuel Meurer
gt; >> >> >> Med venlig hilsen / Best regards, >> Casper Fabricius >> http://casperfabricius.com >> >> On 18/10/2008, at 13.23, Manuel Meurer wrote: >> >>> Done. >>> >>> Manuel >>> >>> On Sat, Oct 18, 20

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

2008-10-18 Thread Manuel Meurer
example: > > > >Lions are great cats >Read more > > > > Med venlig hilsen / Best regards, > Casper Fabricius > http://casperfabricius.com > > On 18/10/2008, at 13.23, Manuel Meurer wrote: > >> Done. >> >> Manuel >> >>

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 ad

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

2008-10-18 Thread Manuel Meurer
sper Fabricius > http://casperfabricius.com > > On 18/10/2008, at 00.55, Manuel Meurer wrote: > >> Yep, I use in my parameterized snippets extension: >> http://github.com/manuelmeurer/radiant-parameterized-snippets-extension/ >> The idea originates from here, though:

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] Radiant tag errors

2008-10-17 Thread Manuel Meurer
ge, wouldn't 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 objec

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

2008-10-17 Thread Manuel Meurer
Yep, I use 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 Radius tag? Or anything about >

Re: [Radiant] Radiant tag errors

2008-10-17 Thread Manuel Meurer
raise 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,

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 p

Re: [Radiant] Radiant tag errors

2008-10-17 Thread Manuel Meurer
Change #28 in vendor/radiant/app/models/page_context.rb from raise StandardTags::TagError.new(e.message) to "Radius error: #{e.message}" Manuel On Fri, Oct 17, 2008 at 9:31 PM, Joe Van Dyk <[EMAIL PROTECTED]> wrote: > Err, sure: > > On Fri, Oct 17, 2008 at 12:28

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

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] navigation tag question

2008-10-17 Thread Manuel Meurer
er if it would 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 t

Re: [Radiant] navigation tag question

2008-10-17 Thread Manuel Meurer
I found the r:navigation tag become too limited to do that kind of stuff. See below for an example of how to do your navigation "by hand". activeinactive">Home

[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: I expect to see the title of each subpa