Re: [Radiant] Taking advantage of Rails form helpers/partials within Radiant

2010-08-20 Thread Haselwanter Edmund
Hi, On 20.08.2010, at 07:59, Wes Gamble wrote: On 8/19/10 11:05 PM, Wes Gamble wrote: On 8/16/10 10:36 PM, Wes Gamble wrote: All, I have some custom models which need to be represented in Radiant views, and I would like to be able to take advantage of standard Rails partials, Rails

Re: [Radiant] Taking advantage of Rails form helpers/partials within Radiant

2010-08-20 Thread Wes Gamble
On 8/20/10 2:44 AM, Haselwanter Edmund wrote: Hi, On 20.08.2010, at 07:59, Wes Gamble wrote: On 8/19/10 11:05 PM, Wes Gamble wrote: On 8/16/10 10:36 PM, Wes Gamble wrote: All, I have some custom models which need to be represented in Radiant views, and I would like to be able to take

Re: [Radiant] Taking advantage of Rails form helpers/partials within Radiant

2010-08-20 Thread Haselwanter Edmund
Edmund, I did see this, but I don't think it exactly addresses my issue. I want to render a page where half of my content is provided by a Radiant user, and the other half is provided by me (the developer). Then I don't understand your use case. Either use radius tags to render your

[Radiant] Re: Taking advantage of Rails form helpers/partials within Radiant

2010-08-20 Thread Mark Reginald James
To render a partial in a tag I've been doing tag('show_user_status') do |tag| response.template.render :partial = 'users/status', :locals = {:user = User.find(params[:id])} end You can also add scripts and stylesheets to the page head, and use other view helpers tag('show_user_status') do

[Radiant] Re: Taking advantage of Rails form helpers/partials within Radiant

2010-08-20 Thread Mark Reginald James
Mark Reginald James wrote: I've found it best to use as many custom tags and as few custom Rails actions as possible, so as to maximize the amount of content able to be controlled via the web interface. ...page tree. The share-layouts extension allows fixed-parts of custom- action pages to

[Radiant] how to view (render) a draft page ?

2010-08-20 Thread nruth
Is there a way for admins to view a page before publishing it? I can't find mention of this in the docs 'view site' just loads the live page's root. Radiant 0.9.1 Cheers, Nick

[Radiant] How to disable cache in development mode, Radiant version 0.9.1

2010-08-20 Thread Jurgen
It is said in config/environment.rb that you need to comment out following line in order to disable a cache. System is running in development mode under mongrel precode # config.middleware.use ::Radiant::Cache /code/pre The thing is that disregarding of this line was commented or not, it still

Re: [Radiant] how to view (render) a draft page ?

2010-08-20 Thread Marshal Linfoot
You'll want to install the page_preview extension: http://ext.radiantcms.org/extensions/58-page-preview On Sun, Aug 15, 2010 at 8:33 AM, nruth nick.rutherf...@gmail.com wrote: Is there a way for admins to view a page before publishing it? I can't find mention of this in the docs 'view site'

Re: [Radiant] Taking advantage of Rails form helpers/partials within Radiant

2010-08-20 Thread Wes Gamble
On 8/20/10 5:27 AM, Haselwanter Edmund wrote Edmund, I did see this, but I don't think it exactly addresses my issue. I want to render a page where half of my content is provided by a Radiant user, and the other half is provided by me (the developer). Then I don't understand your use case.

Re: [Radiant] Re: Taking advantage of Rails form helpers/partials within Radiant

2010-08-20 Thread Wes Gamble
On 8/20/10 6:54 AM, Mark Reginald James wrote: To render a partial in a tag I've been doing tag('show_user_status') do |tag| response.template.render :partial = 'users/status', :locals = {:user = User.find(params[:id])} end You can also add scripts and stylesheets to the page head, and

[Radiant] Getting the position of a child page within the list of children for its parent

2010-08-20 Thread Wes Gamble
All, I have a page X, which has several children pages underneath it (say, 10). Is there any relatively easy way to derive the index of a given child of X in the list of children of X? So, for example, for the 3rd child, I need to be able to get a 3 somehow in order to construct links.

Re: [Radiant] Getting the position of a child page within the list of children for its parent

2010-08-20 Thread Wes Gamble
On 8/20/10 3:04 PM, Wes Gamble wrote: All, I have a page X, which has several children pages underneath it (say, 10). Is there any relatively easy way to derive the index of a given child of X in the list of children of X? So, for example, for the 3rd child, I need to be able to get a 3