[Radiant] Re: Use sub folder url with share_layouts

2008-12-16 Thread Vincent Pérès
I tried the last version of share_layouts on github but I got the same problem... maybe it's a mistake of one of my extension. I will check in a new Radiant project later. I have another problem with share_layouts. I created a page and add some content : h2r:title //h2 br / h3Query(s)/h3

[Radiant] Use sub folder url with share_layouts

2008-12-15 Thread Vincent Pérès
Hello, I'm using share_layouts in a page '/project' which is using a layout 'Content'. I created an extension, with routes, controllers etc. to map the project page. Everything is working, the 'part' is display thanks to the layout. Then, I created a new page '/project/list'. I maped it again

[Radiant] Re: Use sub folder url with share_layouts

2008-12-15 Thread Vincent Pérès
Hello, thanks ! I will give you more informations : I created two pages : Projects = /projects (with body content 'Here is Projects') Create = /projects/new (with body content 'Here is new project') Then, I created a new extension with the following routes : map.with_options(:controller =

[Radiant] Use helper or library in Radius Tags

2008-12-13 Thread Vincent Pérès
Hello, I need to use some methods in Radius Tags and one of my Controllers. I created a method after my tags definitions and access it from my tags, it's working. I saw the tags are send to the Page model. So I can't access to them from my controller. How could I create a common library which is

[Radiant] Radiant (master with rails 2.1) and Tag extension

2008-11-26 Thread Vincent Pérès
Hello, I tried to install the Tags extension (http://github.com/jomz/radiant-tags-extension/tree/master/README) with the Radiant master but I got the following problem : [13:[EMAIL PROTECTED]:~/NetBeansProjects/myproject(master)]$ rake radiant:extensions:tags:install (in

[Radiant] Use Radius tags to do redirections?

2008-11-25 Thread Vincent Pérès
Hello, I'm trying to find a way to restrict access to my Radiant front pages using Radius tags (or maybe not) like that : r:allow_access_to groups=user / tag allow_access_to do |tag| ...process... unless has_right redirect_to / end end But it's not working because the redirect_to

[Radiant] Re: Use Radius tags to do redirections?

2008-11-25 Thread Vincent Pérès
Mohit Sindhwani wrote: Vincent Pérès wrote: redirect_to / I can't answer your question directly, but as a different solution, single pages can be easily protected by using simple_password. I wrote up a page in the Summer Reboot for this: http://wiki.radiantcms.org/simple_password

[Radiant] How to use current_user in tags

2008-10-21 Thread Vincent Pérès
Hello, I need to use the current_user in Radius tags. In fact it is working on my computer which is running with MAC OS (and previously on my Windows environment), but not on my friend computer which is on Windows. Well, what I have done : 1. create an accessor attribut 'current_user' on page

[Radiant] Re: How to use current_user in tags

2008-10-21 Thread Vincent Pérès
Hello Sean, I didn't enabled session, I created a new page type which is not using cache. In fact, the problem is on site_controller level, when I'm giving the current user to my current page : @page.current_user = current_user On my computer 'current_user' exist, but the var is nil on the

[Radiant] Error between development and production modes

2008-09-26 Thread Vincent Pérès
Hello, I tryed to run Radiant (with home made and common extensions) in production mode on localhost, and I got the following error when I'm trying to go to my root page '/' : Processing SiteController#show_page (for 127.0.0.1 at 2008-09-26 17:00:13) [GET] Parameters: {url=/, action=show_page,

[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

[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

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

[Radiant] Re: Re: How to use session in tags?

2008-08-28 Thread Vincent Pérès
Christopher Dwan wrote: Vincent, You have to get SiteController to pass the info into your model, that's the only way to get the data into a tag AFAIK. So you have to write an extension for SiteController that adds the function of passing the current_user's info into your model (e.g. pass

[Radiant] Re: How to use session in tags?

2008-08-27 Thread Vincent Pérès
Hello, The javascript way was my last solution. It could be interessant... Christopher Dwan, I don't follow what you mean by create ovveriding a method to add the current_user? Is there an other way to access to the current_user var when I'm creating radius tags? Thanks a lot ! Vincent --

[Radiant] How to use session in tags?

2008-08-26 Thread Vincent Pérès
Hello, I would like to create something like that : http://lists.radiantcms.org/pipermail/radiant/2006-September/001695.html The goal is to display a 'login box' if the current user is not connected, else an 'account box'. But I can't access to the 'session'. I tried to enable the session like

[Radiant] Manage radiant gems

2008-08-19 Thread Vincent Pérès
Hello, I would like to package my radiant app before deployment. I created a gems/ folder under vendor/, and copy the gems which are in the radiant vendor/ folder and others for my project. Then, I added the following lines to environment.rb to load my new path : config.load_paths +=

[Radiant] Re: Manage radiant gems

2008-08-19 Thread Vincent Pérès
Mohit Sindhwani wrote: Vincent Pérès wrote: end But it doesn't work, the radiant gems like 'rubypants' can't be loading... what is the best way to do that? Can you explain me? I'm not sure about this, but I think you're supposed to freeze the Radiant gem. It will take care

[Radiant] Disabled tabs in radiant backend

2008-08-07 Thread Vincent Pérès
Hello, I'm using 'page_group_permissions' to create custom group and manage my users. I would like to restrict access to some extensions, and disable associated tab. I found this topic : http://www.nabble.com/Restricting-user-access-to-certain-admin-tabs...-td13416484.html#a13427010 But they

[Radiant] Re: Disabled tabs in radiant backend

2008-08-07 Thread Vincent Pérès
Hello, Thanks for your quick answer. I'm trying to implement a new test to define roles. The 'admin?' method is in application_helper.rb, how can I extend it? Is it the same way as extend a controller or a model? Because I'm trying like that 'ApplicationHelper.send(:include,