Default options

Are there really only 4 available config params to set in radiant?
from app/models/radiant/config.rb:

admin.title :: the title of the admin system

admin.subtitle :: the subtitle of the admin system

default.parts :: a comma separated list of default page parts

dev.host :: the hostname where draft pages are viewable

I’m looking for a way to set the default published status of a page
on creation (while I’m rapidly adding content).

Also, I assume there is no way to preview a page in draft status in
the site layout?

Thanks,
dm

Also, I assume there is no way to preview a page in draft status in
the site layout?

<r:children:each status=“any”>

</r:children:each>

-jamie

David Minor wrote:

Are there really only 4 available config params to set in radiant?

Yes.

I’m looking for a way to set the default published status of a page
on creation (while I’m rapidly adding content).

There isn’t a way to do this right now, though I admit this is annoying
especially during the site creation phase. I’m open to the idea of
adding a config value for this.

Also, I assume there is no way to preview a page in draft status in
the site layout?

Nope. Not unless you use the facets branch with the page preview
extension.


John L.
http://wiseheartdesign.com

You can also disable caching permanently by modifying the show_page
method of the SiteController

def show_page
response.headers.delete(‘Cache-Control’)
url = params[:url].to_s
show_uncached_page(url)
end

I recommend leaving the original code for show_page there and commented
out, and making sure you put it back to normal when you go to a
production environment.

John W. Long wrote:

There isn’t a way to do this right now, though I admit this is annoying
especially during the site creation phase. I’m open to the idea of
adding a config value for this.

This is now implemented in mental:

http://dev.radiantcms.org/radiant/changeset/343

Now you can do the following from script/console:

Radiant::Config[‘defaults.page.status’] = ‘published’

And by default new pages will be created with the published status.

Also note that ‘default.parts’ has been renamed ‘defaults.page.parts’.
The new list of keys is:

admin.title : the title of the admin system
admin.subtitle : the subtitle of the admin system
defaults.page.parts : a comma separated list of default page parts
defaults.page.status : a string representation of the default status
dev.host : the hostname where draft pages are viewable


John L.
http://wiseheartdesign.com

dev.host : the hostname where draft pages are viewable

Interesting! Does this require use of the ‘multiple domain names’
extension?
-jamie

Jacob B. wrote:

def show_page
response.headers.delete(‘Cache-Control’)
url = params[:url].to_s
show_uncached_page(url)
end

This will also show pages that have “Draft” status.

On Feb 21, 2007, at 9:20 PM, John W. Long wrote:

Also, I assume there is no way to preview a page in draft status in
the site layout?

Nope. Not unless you use the facets branch with the page preview
extension.

John,

so what does the dev.host config option do?

Thanks for adding the new config option for status.

dm

David Minor wrote:

so what does the dev.host config option do?

It allows you to preview “draft” pages:

http://dev.radiantcms.org/radiant/wiki/HowToDevAndProduction


John L.
http://wiseheartdesign.com