[Radiant] Radiant for a Static Site/ No Templates, etc.

2008-09-08 Thread Mohit Sindhwani
Hi Guys I was thinking of a couple of things regarding the ongoing documentation effort and the recent request for converting a static website to a Radiant based site and this got me wondering. One of the questions that has been asked in the past is why Radiant doesn't have any templates/

[Radiant] How to edit haml in radiant core?

2008-09-08 Thread Vincent Pérès
Hello, My goal is to use only extensions, and don't modify radiant core. I will try to be clear with an example. I would like to customize the avalaible layout list when you are creating / editing a page. But it's not possible, because the request is done directly in

Re: [Radiant] How to edit haml in radiant core?

2008-09-08 Thread Jim Gay
I'm not sure I understand exactly what you want to do, but I think this should do it: In your whatever_extension.rb activate method do: admit.page.edit.add :parts_bottom, 'your_additional_partial', :after = 'edit_layout_and_type' Then it will look for a file in

[Radiant] Re: How to edit haml in radiant core?

2008-09-08 Thread Vincent Pérès
Hello Jim, I had already use shards to inject and extend functionnalities to pages, it's not a problem. Here, I would like to remove or replace an 'existing' part : layout list, to replace it by my list for example. I didn't see we can 'replace' a part, thank you. Do you have any documentation

Re: [Radiant] Re: How to edit haml in radiant core?

2008-09-08 Thread Jim Gay
It works just like the 'add' method. I have this in the Help extension: Radiant::AdminUI::RegionSet.class_eval do def replace(region=nil, partial=nil) raise ArgumentError, You must specify a region and a partial unless region and partial self[region].replace([partial])

Re: [Radiant] Re: How to edit haml in radiant core?

2008-09-08 Thread Sean Cribbs
Jim Gay wrote: It works just like the 'add' method. I have this in the Help extension: Radiant::AdminUI::RegionSet.class_eval do def replace(region=nil, partial=nil) raise ArgumentError, You must specify a region and a partial unless region and partial

[Radiant] Re: Re: How to edit haml in radiant core?

2008-09-08 Thread Vincent Pérès
That's just perfect ! I created a file named _edit_layout_and_type.rhtml in my extension and it's working ! Thank you, radiant is realy flexible ! Vincent -- Posted via http://www.ruby-forum.com/. ___ Radiant mailing list Post:

Re: Template contest! was: [Radiant] Radiant for a Static Site/ No Templates, etc.

2008-09-08 Thread [EMAIL PROTECTED]
On Mon, 2008-09-08 at 08:03 -0600, Sean Cribbs wrote: Mohit, A long time ago, John solicited contributions of templates with the opportunity for people to get them included in the main Radiant distribution. I think this is a fabulous idea and I'd like to reinitiate it. I'm going to up

[Radiant] Re: no vendor/radiant

2008-09-08 Thread John Laudun
On 2008-09-08, at 07:52 , Sean Cribbs wrote: vendor/rails is actually in vendor/radiant (thus vendor/radiant/vendor/rails ) if you have frozen. Well, here's the output from radiant newapp from a sudo gem install radiant that I ran on my work machine not five minutes ago. (I'm pasting

Re: [Radiant] Re: no vendor/radiant

2008-09-08 Thread Sean Cribbs
By default with no vendor/radiant, it runs out of the gem. If you need to freeze it, check out these options once you've generated your instance: rake -T radiant:freeze Sean John Laudun wrote: On 2008-09-08, at 07:52 , Sean Cribbs wrote: vendor/rails is actually in vendor/radiant (thus

[Radiant] Re: Template contest! was: Radiant for a Static Site/ No Templates, etc.

2008-09-08 Thread David Piehler
Sean Cribbs wrote: A long time ago, John solicited contributions of templates with the opportunity for people to get them included in the main Radiant distribution. I think this is a fabulous idea and I'd like to reinitiate it. I'm going to up the ante some and say that the top submissions

[Radiant] translation of the admin interface

2008-09-08 Thread Andre Garzia
Hello Folks, I need to have a Portuguese translation of the admin interface and I've wondered what is the most sensible option, if it is hard coding the translation of the current version or work with the Jargon branch. That branch appears to be based on some old Radiant version and the

Re: [Radiant] Importing content from static website into radiant site

2008-09-08 Thread Martin Sadler
A site ripper extension in Radiant.. now that would be neat. Specify a url and div/class to page/region mappings and it does the rest. I wrote a quick extension that imports content from Mephisto which might be of interest: http://github.com/martinbtt/radiant-import-mephisto Not crawling

[Radiant] best way to translate admin interface?

2008-09-08 Thread Andre Garzia
Hello Folks, I need to have a Portuguese translation of the admin interface and I've wondered what is the most sensible option, if it is hard coding the translation of the current version or work with the Jargon branch. That branch appears to be based on some old Radiant version and the

[Radiant] LegacyPathHandler, a Radiant Extension

2008-09-08 Thread Giovanni Intini
Hi, I wrote a small extension to handle a 1:1 list of URLs that need to be mapped with a 301 Redirect to new locations. I needed it because the VPS I deployed on runs on mod_rails and I couldn't use .htaccess. More info (and the code):

Re: [Radiant] translation of the admin interface

2008-09-08 Thread Pacifists
I would be glad to help, because I'll need Lithuanian interface when I'm finished building my extensions. I guess all we need is some guidance and we can start building it. Rytis On Mon, Sep 8, 2008 at 10:09 PM, Andre Garzia [EMAIL PROTECTED] wrote: Hello Folks, I need to have a Portuguese

Re: [Radiant] Re: Template contest! was: Radiant for a Static Site/ No Templates, etc.

2008-09-08 Thread Christopher Dwan
Before this gets under way, would it make sense for someone to define some standards/ conventions for building the templates? It would be great if the templates that come out of this are somewhat interchangeable, or tending in that direction. e.g: Assuming primary navigation will typically

Re: [Radiant] Re: Template contest! was: Radiant for a Static Site/ No Templates, etc.

2008-09-08 Thread Mohit Sindhwani
Christopher Dwan wrote: Before this gets under way, would it make sense for someone to define some standards/ conventions for building the templates? It would be great if the templates that come out of this are somewhat interchangeable, or tending in that direction. I absolutely agree with