Re: [Radiant] tags extension

2009-01-28 Thread Simon Josi
Maybe this could work: http://github.com/Aissac/radiant-extensions-extension greets /simon On Wed, 28 Jan 2009 12:14:42 +1100 Enrico Teotti enrico.teo...@gmail.com wrote: Hi, I need to have the tag list for each page coming out of: r:children:each limit=15 order=desc I'd use a:

Re: [Radiant] How to check out the 0.6.9 branch?

2009-01-28 Thread Sean Cribbs
First, delete that branch, then checkout the tag. git branch -D 0.6.9 git checkout 0.6.9 Sean Simon Rönnqvist wrote: Hi! I'm installing a new Rails site, and since I need the multi-site extension I'm unable to use 0.7.0 yet. I tried checking out the 0.6.9 branch by doing this: git

Re: [Radiant] How to check out the 0.6.9 branch?

2009-01-28 Thread Jeroen Janssen
Hi Simon, git clone will clone the radiant repository, and put you in the current 'master' (0.7.0) tree. git checkout -b will actually create a new branch based upon your current working tree (so you actually created a 'new' branch there) instead of checking out the 0.6.9 'tag'. Jeroen On Wed,

[Radiant] Template field as link: possible?

2009-01-28 Thread Nate Turnage
There is a field in one of my templates that contains a link to an external page and I would like to know how I can use that field in an a href or an r:link / kind of tag. I need something like this: a href=r:content part=link /r:title //a Is this possible in any way? ~Nate

Re: [Radiant] Template field as link: possible?

2009-01-28 Thread Sean Cribbs
I assume you're talking about the templates extension. And yes, all you need to do is put the code you typed in the appropriate place of the structure part of the template. Sean Nate Turnage wrote: There is a field in one of my templates that contains a link to an external page and I would

Re: [Radiant] Template field as link: possible?

2009-01-28 Thread Nate Turnage
On Wed, Jan 28, 2009 at 10:34 AM, Sean Cribbs seancri...@gmail.com wrote: I assume you're talking about the templates extension. And yes, all you need to do is put the code you typed in the appropriate place of the structure part of the template. OMG! It does work. I thought that the

Re: [Radiant] Template field as link: possible?

2009-01-28 Thread Mohit Sindhwani
Nate Turnage wrote: On Wed, Jan 28, 2009 at 10:34 AM, Sean Cribbs seancri...@gmail.com wrote: I assume you're talking about the templates extension. And yes, all you need to do is put the code you typed in the appropriate place of the structure part of the template. OMG! It does

Re: [Radiant] Template field as link: possible?

2009-01-28 Thread Nate Turnage
On Wed, Jan 28, 2009 at 11:12 AM, Mohit Sindhwani t...@onghu.com wrote: So did I! So, I wrote this for you: tag 'local:natelink' do |tag| part = tag.locals.page.parts.find_by_name('link') url = part.content a href=\#{url}\This is a link/a end Darn! Thanks anyway. This really

Re: [Radiant] Template field as link: possible?

2009-01-28 Thread Sean Cribbs
Radius uses a really naive parsing method -- regular expressions -- so it won't try to match the a tag, and your Radius tags can appear anywhere. Nate Turnage wrote: On Wed, Jan 28, 2009 at 11:12 AM, Mohit Sindhwani t...@onghu.com wrote: So did I! So, I wrote this for you: tag

[Radiant] paperclipped

2009-01-28 Thread Steven Southard
I really like this extension. I can see a lot of good in it that my clients would like but not being able to delete files is a problem. It works great on my Mac but then when I upload it to Joyent's Solaris servers it just doesn't delete all the files. I don't really understand what the

Re: [Radiant] paperclipped

2009-01-28 Thread C. R. Oldham
Steven, Thanks for the detailed stacktrace. This is interesting, it really sounds like a difference between Solaris and the Mac. If I have a minute today I'll look at the paperclipped source and see if I can figure out what's going on. It's acting like the extension is trying to

Re: [Radiant] paperclipped

2009-01-28 Thread C. R. Oldham
Steven, Also, can you send us a server log excerpt for this delete? --cro On Jan 28, 2009, at 11:43 AM, C. R. Oldham wrote: Steven, Thanks for the detailed stacktrace. This is interesting, it really sounds like a difference between Solaris and the Mac. If I have a minute today I'll

Re: [Radiant] paperclipped

2009-01-28 Thread C. R. Oldham
On Jan 28, 2009, at 11:49 AM, Sean Cribbs wrote: Sounds like paperclip should use FileUtils.rm_rf instead of rm_dir. It doesn't, at least if it is the same as the one I have installed. Here's the code: def flush_deletes #:nodoc: logger.info([paperclip] Deleting files for

Re: [Radiant] what extensions do you have installed?

2009-01-28 Thread Michael Kessler
Here are mine: admin_breadcrumbs (heads/master) copy_move (heads/master) dashboard (heads/master) gallery (heads/master) help (v1-20-gc14a55e) import_export (heads/master) iphone (heads/master) multi_site (heads/master) navigation_tags (heads/master) page_preview paperclipped (heads/master)

Re: [Radiant] error when running tests on edge

2009-01-28 Thread Joe Van Dyk
Doh, that makes sense, I guess. I wonder if something like this is possible in config/environment.rb: if RAILS_ENV == 'test' config.gem 'rspec-rails', ' 1.0' config.gem 'rspec' config.gem 'blah' end config.gem whatever else' Joe On Tue, Jan 27, 2009 at 6:20 PM, Sean Cribbs

Re: [Radiant] paperclipped

2009-01-28 Thread Steven Southard
Thank you for looking into this. I tried both yours and Sean quick fix and neither helped. here is the full stack Parameters: {action=remove, authenticity_token=b3c11c1f1191103da344cae2345c5beb9a7654d, id=11, controller=assets} [paperclip] Paperclip attachment asset on Asset initialized.

Re: [Radiant] Re: Stuck on Creating Radiant Extensions tutorial

2009-01-28 Thread Andrew Neil
Roman, Sorry, my bad. I updated the tutorial a few months back, replacing the scaffolding (which was deprecated in Rails) with Radiant's own AbstractModelController. I made alterations to the tutorial after modifying my local copy of the LinkRoll controller, but I didn't try running

Re: [Radiant] Abstract and Resource controllers

2009-01-28 Thread Andrew Neil
On 27 Jan 2009, at 22:15, Andrew Neil wrote: I am planning on updating the Creating Radiant Extensions tutorial[1] to reflect these changes. I hesitate, because I think the current tutorial should continue to exist, as long as Radiant 0.6.9 and below are still in usage. Would it be

Re: [Radiant] SnS Extension - 500 Error

2009-01-28 Thread coffeepostal
I'm getting the same error again, but this time it's not being fixed by bootstrapping. Any ideas? coffeepostal wrote: Hello- I'm relatively new to the RoR world and am trying to use Radiant for my CMS, but I keep running into problems with the Styles n' Scripts (SnS) extension. I

Re: [Radiant] SnS Extension - 500 Error

2009-01-28 Thread Joe Van Dyk
Errm, what does log/production.log say? On Wed, Jan 28, 2009 at 6:59 PM, coffeepostal b...@adamfarnsworth.com wrote: I'm getting the same error again, but this time it's not being fixed by bootstrapping. Any ideas? coffeepostal wrote: Hello- I'm relatively new to the RoR world and am

[Radiant] Can a tag determine the filter used by it's page part?

2009-01-28 Thread Philip Hallstrom
Hi everyone - Working on an extension and it would be convenient for me if the tag could determine what if any filter was being applied to it's result. I didn't see anything in the source (but also haven't mapped it all the way through). I saw one post on the mailing list from a year ago

Re: [Radiant] SnS Extension - 500 Error

2009-01-28 Thread coffeepostal
I've attached the log file. Adam http://www.nabble.com/file/p21721318/production.log production.log Joe Van Dyk-2 wrote: Errm, what does log/production.log say? -- View this message in context: http://www.nabble.com/SnS-Extension---500-Error-tp21486070p21721318.html Sent from the

Re: [Radiant] SnS Extension - 500 Error

2009-01-28 Thread Andrew Neil
From your log: ActiveRecord::StatementInvalid (Mysql::Error: Table 'reliveministry.text_assets' doesn't exist: SHOW FIELDS FROM `text_assets`) it appears that the text_assets table is missing. Perhaps you need to run the migrations for sns? Make sure you do it in both dev and