[Radiant] Problem with Content-Type in Site5

2007-05-28 Thread Lluna
Hi all I have a weird problem with a radiant extension in site5 I'm using Radiant 0.6.1 an I'm developing some extensions for a car rental website, i have created some new pages ( Extending radiant page model ) for managing a post from a form to query the car availability, all works fine in my lo

Re: [Radiant] radiant powered website and my experience developing it

2007-05-28 Thread Erik van Oosten
The Radiant layout is the default. I found it was active immediately. Perhaps it works when you do not write a layout yourself? Regards, Erik. Raphael Bauduin wrote: > - you can't use a radiant layout for your extension views > > -- Erik van Oosten http://2007.rubyenrails.nl/ http://

Re: [Radiant] DB2 support in radiant. Patch proposal

2007-05-28 Thread John W. Long
Daniel Sheppard wrote: > Each of the methods in archive_finder are used in exactly one place - > the corresponding archive_xx_index_page tag. The code used to be quite > complicated, and the day finder depended on the year and month finder. > Now however, the code is quite simple and has no inte

Re: [Radiant] DB2 support in radiant. Patch proposal

2007-05-28 Thread Daniel Sheppard
> IIRC, that 'extract' method that was removed was designed to > deal with sqlite3. Yes, but it was only necessary because the original code was doing the search in a platform specific way by relying on functions to transform a date into a string and perform a string comparison. The new app

Re: [Radiant] DB2 support in radiant. Patch proposal

2007-05-28 Thread Sean Cribbs
IIRC, that 'extract' method that was removed was designed to deal with sqlite3. Also, the size of your range is only one day. Sean Daniel Sheppard wrote: >> Daniel Sheppard wrote: >> >>> In the interests of sanity, lets pretend that radiant never had >>> a switch based on ActiveRecord::Ba

Re: [Radiant] DB2 support in radiant. Patch proposal

2007-05-28 Thread Daniel Sheppard
> Daniel Sheppard wrote: > > In the interests of sanity, lets pretend that radiant never had > > a switch based on ActiveRecord::Base.connection.adapter_name. > > > > http://dev.radiantcms.org/radiant/changeset/447 > > Did this change preserve existing functionality? Yes - all tests pass, and

Re: [Radiant] Installation issue

2007-05-28 Thread Matt Parrish
This is just a guess here, but make sure you are running the migrate in the right environment. I think for production, you should run rake production db:migrate On May 28, 2007, at 6:23 PM, Cameron wrote: > John - FYI, I ran into the same issue. > > Radiant 0.6.1 > FreeBSD 6.2 > MySQL 4.1.22

Re: [Radiant] Installation issue

2007-05-28 Thread Cameron
John - FYI, I ran into the same issue. Radiant 0.6.1 FreeBSD 6.2 MySQL 4.1.22 I have one instance of Radiant running fine. I deployed a second copy and it won't rake db:bootstrap (event tried rake db:migrate VERSION=1). -Cameron John Long wrote: > Roberto Luis Iriarte Pablos wrote: >> Mysql:

Re: [Radiant] extending admin_ui ?

2007-05-28 Thread Stephane B.
Adam Williams wrote: > On May 27, 2007, at 5:48 PM, Stephane B. wrote: > >> >> Is it a matter of Radiant extension mechanism ? > > > If you do not care for the solution you have in place, you could > place your code in a file like /lib/radiant/admin_ui_ext.rb, > then in your extension loader, '

[Radiant] radiant powered website and my experience developing it

2007-05-28 Thread Raphael Bauduin
Hi, It's been some time I've started this website and I'm happy to be able to share it with you now: http://www.profoss.eu It's a website the Profoss that organises events for professional users of Free and Open Source software. It uses 2 extensions I have developed: one for the "Send to a friend

[Radiant] url regexp question

2007-05-28 Thread Francesco Lunelli
Hello everybody I have a site with a node page called news, inside that I have some subpages and some other nodes with subpages in them. I am using children:each to show all subpages of news, but I need to see subpages of other nodes too called for example sction1 and section2. So I put another cyc

Re: [Radiant] Radiant integration with another Rails app?

2007-05-28 Thread Matt Parrish
I'm working right now to get a project created on RubyForge and trying to come up with a reasonable name for the extension. How does 'RadiantFromRails' sound? I'm up for getting together with you and Sean on IRC. I'd really like to hear Sean's thoughts about how he might approach the issue

[Radiant] Internationalization examples

2007-05-28 Thread Loren Johnson
I'm being hired to write a new Extension for handling some basic site internationalization needs (admin text won't be addressed). We've went over a couple of options and for managability we've decided on creating separate default page parts for each language and then overriding find_page_by

Re: [Radiant] Radiant integration with another Rails app?

2007-05-28 Thread Loren Johnson
Hey Matt, Funny -- I knew I talked to someone about this at RailsConf and I just couldn't remember who... Now I remember our discussion well. Yes, I'd very much like to help out in whatever way I can. I really want to see this happen and end-up with something that makes the integration dead

Re: [Radiant] Radiant integration with another Rails app?

2007-05-28 Thread Matt Parrish
Hi Loren, Nice to talk to you again! ;) I'm working on the same thing right now. I currently have a Radiant extension that allows Radiant to live in /vendor while having a Rails app at it's current location with only a slight modification required for config/routes.rb to work properly. It

[Radiant] Radiant integration with another Rails app?

2007-05-28 Thread Loren Johnson
Does anyone have a successful example out there of putting Radiant in the vendor directory of an existing full-scale Rails app and having it play nicely? I've tried unsuccessfully in the past, however with the final polish on 0.6 (and now 0.61) I'm ready to give it another shot. I have an

Re: [Radiant] DB2 support in radiant. Patch proposal

2007-05-28 Thread Sean Cribbs
Luca, In the future you can submit a ticket on the Trac with the prefix [PATCH]. Sean On 5/27/07, Luca Erzegovesi <[EMAIL PROTECTED]> wrote: > Hi. > I am experimenting IBM DB2 Express as a back-end for Radiant. Results > are encouraging so far. Some problems needed tweaks to the ibm_db > adapter

Re: [Radiant] Missing admin tabs and extensions!

2007-05-28 Thread Jonathan Métillon
On 5/28/07, Jonathan Métillon <[EMAIL PROTECTED]> wrote: > On 5/28/07, Jonathan Métillon <[EMAIL PROTECTED]> wrote: > > > > Then when I log into the admin, everything seems ok, I can even create > > a homepage. But I don't see the Pages | Snippets | Layouts tabs! > > And there is no extension

Re: [Radiant] Missing admin tabs and extensions!

2007-05-28 Thread Jonathan Métillon
On 5/28/07, Jonathan Métillon <[EMAIL PROTECTED]> wrote: > > Then when I log into the admin, everything seems ok, I can even create > a homepage. But I don't see the Pages | Snippets | Layouts tabs! > And there is no extensions, not even the default Markdown and Textile. Just to be sure, I c

[Radiant] Missing admin tabs and extensions!

2007-05-28 Thread Jonathan Métillon
Hi, I just created a new radiant app, with the usual "radiant appname" command. Then I did the usual steps: creating config/database.yml, the production database, bootstrapping the database, changing owner of files for the web server user, configuring and restarting web server. Then when I log in

Re: [Radiant] JavaScript in a Page?

2007-05-28 Thread Matt Parrish
Hi Oliver, You have two typical options in this case. The first is to give your element an id, just like you did for the element. Then you could use that id in your javascript. The other method, though, is probably what you want. You could keep your html and javascript the way it is,

Re: [Radiant] Help With JavaScript

2007-05-28 Thread Keith Bingman
Why do you need to get the actual hyperlink? If you just want to indicate what page you are on, use "li.selected a" as your CSS selector and it will find the proper link. I do this all the time for navigation lists. Otherwise, you will have to have an id on the actual link, not the list el

Re: [Radiant] extending admin_ui ?

2007-05-28 Thread Adam Williams
On May 27, 2007, at 5:48 PM, Stephane B. wrote: > Thanks for your help. Finally I put my extended code in the definition > of the extension. It looks to work fine... but not really clean. It > seems that only my folder lib/radiant can't be loaded :(, is there any > way to force to load this folder

[Radiant] Help With JavaScript

2007-05-28 Thread Oliver Coningham
Hi - Thanks for the useful information about how to add JavaScript to a page. I know it's not quite on the topic of RoR, but I need a little bit of help with my JavaScript. My HTML is as follows: http://www.spongenewmedia.co.uk/"; title="Return to the home page">Welcome Blog

Re: [Radiant] JavaScript in a Page?

2007-05-28 Thread Oliver Coningham
Hi - Thanks for the useful information about how to add JavaScript to a page. I know it's not quite on the topic of RoR, but I need a little bit of help with my JavaScript. My HTML is as follows: http://www.spongenewmedia.co.uk/"; title="Return to the home page"Welcome Blog Contact

Re: [Radiant] DB2 support in radiant. Patch proposal

2007-05-28 Thread John W. Long
Daniel Sheppard wrote: > In the interests of sanity, lets pretend that radiant never had > a switch based on ActiveRecord::Base.connection.adapter_name. > > http://dev.radiantcms.org/radiant/changeset/447 Did this change preserve existing functionality? > I'd propose that we dump the archive_f