[Radiant] radiant edge on dreamhost

2010-04-27 Thread Si Forster
Morning all,

Finally I got the edge release working on dreamhost.

I stumbled across this article:
http://www.appletownprince.com/category/dreamhost/

I then had a go at switching to edge and calling rake production:db
bootstrap with RAILS_ENV=production stuck on the end, and it worked.

The problem may have been the environments.rb getting updated on the rake
just before I called the bootstrap, and hence removing the RAILS_ENV from my
environment.rb

I'm going to try and do a few more installs and get tweak the install
instructions for dreamhost in the wiki when I get time.



Anyhoo.. next problem! Bet you all love me!

I've installed a number of extensions and they all work great, except where
they require javascript.

Both Bespin and Tiny_Paper use /javascript/admin/xxx.js files and when you
navigate to those files I get page not found.

I installed bespin using ray and tiny_paper using script/extension

Any thoughts on why this might be the case?

Thanks for all your help so far.

Si
___
Radiant mailing list
Post: Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
List Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Radiant: http://radiantcms.org
Extensions: http://ext.radiantcms.org


[Radiant] Archive Month Index

2010-04-27 Thread Si Forster
Me again!

I've implemented the simple blog idea (seen here:
http://wiki.github.com/radiant/radiant/using-radiant-as-a-blog) and
encountered a problem with Archive Month Index.

Setting the Archive Month Index body as:

r:archive:children:each order=asc
div class=entry
  h3r:link //h3
  r:content /
  r:if_content part=extendedr:link
anchor=extendedmore#8230;/r:link/r:if_content
  p class=infoPosted by r:author / on r:date format=%d %b %Y //p
/div
/r:archive:children:each

Results in the error:

*undefined method `all' for #

*when viewing the front end version of a monthly archive page

Anyone else had this problem?

Si
___
Radiant mailing list
Post: Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
List Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Radiant: http://radiantcms.org
Extensions: http://ext.radiantcms.org


Re: [Radiant] radiant edge on dreamhost

2010-04-27 Thread Si Forster
Okay so a bit further along now.

Currently I need to specifiy RAILS_ENV=production in the command line
after and db based changes such as rake radiant:extensions:xxx:update or
db:migrate.

Any idea why this might be the case? I've got ENV['RAILS_ENV'] =
'production' specificed in my environments file but this doesn't seem to
make a difference.

Hopefully my findings will help others using dreamhost.

--

On another note, installing bespin and tiny_mce with ray or script/extension
was not enough...

I also had to call :update and :migrate (again with  RAILS_ENV=production
on the end).

-

Hopefully this is a more useful reply than my previous.

Si

On 27 April 2010 09:23, Si Forster m...@siforster.net wrote:

 Morning all,

 Finally I got the edge release working on dreamhost.

 I stumbled across this article:
 http://www.appletownprince.com/category/dreamhost/

 I then had a go at switching to edge and calling rake production:db
 bootstrap with RAILS_ENV=production stuck on the end, and it worked.

 The problem may have been the environments.rb getting updated on the rake
 just before I called the bootstrap, and hence removing the RAILS_ENV from my
 environment.rb

 I'm going to try and do a few more installs and get tweak the install
 instructions for dreamhost in the wiki when I get time.

 

 Anyhoo.. next problem! Bet you all love me!

 I've installed a number of extensions and they all work great, except where
 they require javascript.

 Both Bespin and Tiny_Paper use /javascript/admin/xxx.js files and when you
 navigate to those files I get page not found.

 I installed bespin using ray and tiny_paper using script/extension

 Any thoughts on why this might be the case?

 Thanks for all your help so far.

 Si

___
Radiant mailing list
Post: Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
List Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Radiant: http://radiantcms.org
Extensions: http://ext.radiantcms.org


[Radiant] [ANN] Radiant 0.9.0 RC2

2010-04-27 Thread Jim Gay
Announcing the second release candidate of Radiant 0.9.0.

The big news in this release internationalization. For that we have
many developers to thank, but in particular Keith Bingman for
organizing the effort.

There are a couple of changes that are worth mentioning, but see the
http://github.com/radiant/radiant/blob/master/CHANGELOG for the full
details. What’s changed?

* The tab API has solidified.
* There are new features for pagination (requiring will_paginate).
* You can now run Radiant from a sub-directory.
* When selecting a published date in the future, Radiant will treat
the content as hidden until that date
* Extensions may be loaded as gems and generated extensions now have
features to easily create gems with Jeweler
* We’re running on Rails 2.3.5 (but don’t worry, we’re working on Rails 3)

If you are an extension developer, begin upgrading now. The official
release of 0.9 is just around the corner.

As always we welcome your feedback and contributions.

Additionally, version 0.8.2 has quietly been released to prevent
problems with running rake commands while newer cucumber versions are
installed on your system. There are no new features in 0.8.2.

Download  Install

You can download the gem here http://github.com/radiant/radiant/downloads

Install it with the gem command:

$ gem install radiant --prerelease

This will install the gem as ‘radiant-0.9.0.rc2’.

How to Upgrade an Existing Project or Site

1. Update the Radiant assets from in your project:

rake radiant:update

2. Migrate the database:

rake production db:migrate

3. Restart the web server

-- 
Jim Gay
http://www.saturnflyer.com
___
Radiant mailing list
Post: Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
List Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Radiant: http://radiantcms.org
Extensions: http://ext.radiantcms.org


Re: [Radiant] radiant edge on dreamhost

2010-04-27 Thread Anton Aylward
Si Forster said the following on 04/27/2010 11:06 AM:
 Okay so a bit further along now.
 
 Currently I need to specifiy RAILS_ENV=production in the command line
 after and db based changes such as rake radiant:extensions:xxx:update or
 db:migrate.
 
 Any idea why this might be the case? 

You're using Passenger, right?
Passenger seems ignore the ENV and RAILS_ENV and always run as
production.   I believe this is documented and I recall it being
mentioned here when I encountered that last year :-)

Of course access though Passenger is only for web-based access.
For command line you have to specify it explicitly, as you point out.

 I've got ENV['RAILS_ENV'] =
 'production' specificed in my environments file but this doesn't seem to
 make a difference.

I observed this too and I don't know why it is.
Maybe its in the libraries they use ...

Try compiling your own version of RAKE.

 Hopefully my findings will help others using dreamhost.

BTDT.

-- 
The maxim that people should not have a right till they are ready to
exercise it properly, is worthy of the fool in the old story who
resolved not to go into the water till he had learned to swim.
--Macaulay
___
Radiant mailing list
Post: Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
List Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Radiant: http://radiantcms.org
Extensions: http://ext.radiantcms.org


Re: [Radiant] [ANN] Radiant 0.9.0 RC2

2010-04-27 Thread Marshal Linfoot
Excuse my ignorance, but the download link provides a source archive in zip
or tgz format. How do I install a gem from it? And would this be equivalent
to installing the previous rc1 gem and freezing to edge?

On Tue, Apr 27, 2010 at 11:22 AM, Jim Gay j...@saturnflyer.com wrote:

 Announcing the second release candidate of Radiant 0.9.0.

 The big news in this release internationalization. For that we have
 many developers to thank, but in particular Keith Bingman for
 organizing the effort.

 There are a couple of changes that are worth mentioning, but see the
 http://github.com/radiant/radiant/blob/master/CHANGELOG for the full
 details. What’s changed?

 * The tab API has solidified.
 * There are new features for pagination (requiring will_paginate).
 * You can now run Radiant from a sub-directory.
 * When selecting a published date in the future, Radiant will treat
 the content as hidden until that date
 * Extensions may be loaded as gems and generated extensions now have
 features to easily create gems with Jeweler
 * We’re running on Rails 2.3.5 (but don’t worry, we’re working on Rails 3)

 If you are an extension developer, begin upgrading now. The official
 release of 0.9 is just around the corner.

 As always we welcome your feedback and contributions.

 Additionally, version 0.8.2 has quietly been released to prevent
 problems with running rake commands while newer cucumber versions are
 installed on your system. There are no new features in 0.8.2.

 Download  Install

 You can download the gem here http://github.com/radiant/radiant/downloads

 Install it with the gem command:

 $ gem install radiant --prerelease

 This will install the gem as ‘radiant-0.9.0.rc2’.

 How to Upgrade an Existing Project or Site

 1. Update the Radiant assets from in your project:

 rake radiant:update

 2. Migrate the database:

 rake production db:migrate

 3. Restart the web server

 --
 Jim Gay
 http://www.saturnflyer.com
 ___
 Radiant mailing list
 Post: Radiant@radiantcms.org
 Search: http://radiantcms.org/mailing-list/search/
 List Site: http://lists.radiantcms.org/mailman/listinfo/radiant
 Radiant: http://radiantcms.org
 Extensions: http://ext.radiantcms.org




-- 
marshal
___
Radiant mailing list
Post: Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
List Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Radiant: http://radiantcms.org
Extensions: http://ext.radiantcms.org


Re: [Radiant] [ANN] Radiant 0.9.0 RC2

2010-04-27 Thread Jim Gay
On Tue, Apr 27, 2010 at 1:22 PM, Marshal Linfoot mlinf...@gmail.com wrote:
 Excuse my ignorance, but the download link provides a source archive in zip
 or tgz format. How do I install a gem from it? And would this be equivalent
 to installing the previous rc1 gem and freezing to edge?

You can install the gem with gem install radiant --prerelease

Or download the gem binary from
http://rubygems.org/downloads/radiant-0.9.0.rc2.gem
I neglected to include that link in the origin al announcement, but
it's listed here http://rubygems.org/gems/radiant/versions/0.9.0.rc2

And yes you could freeze to edge, but if you have multiple sites
running it might be easier to install the prerelease gem on your
server.


 On Tue, Apr 27, 2010 at 11:22 AM, Jim Gay j...@saturnflyer.com wrote:

 Announcing the second release candidate of Radiant 0.9.0.

 The big news in this release internationalization. For that we have
 many developers to thank, but in particular Keith Bingman for
 organizing the effort.

 There are a couple of changes that are worth mentioning, but see the
 http://github.com/radiant/radiant/blob/master/CHANGELOG for the full
 details. What’s changed?

 * The tab API has solidified.
 * There are new features for pagination (requiring will_paginate).
 * You can now run Radiant from a sub-directory.
 * When selecting a published date in the future, Radiant will treat
 the content as hidden until that date
 * Extensions may be loaded as gems and generated extensions now have
 features to easily create gems with Jeweler
 * We’re running on Rails 2.3.5 (but don’t worry, we’re working on Rails 3)

 If you are an extension developer, begin upgrading now. The official
 release of 0.9 is just around the corner.

 As always we welcome your feedback and contributions.

 Additionally, version 0.8.2 has quietly been released to prevent
 problems with running rake commands while newer cucumber versions are
 installed on your system. There are no new features in 0.8.2.

 Download  Install

 You can download the gem here http://github.com/radiant/radiant/downloads

 Install it with the gem command:

 $ gem install radiant --prerelease

 This will install the gem as ‘radiant-0.9.0.rc2’.

 How to Upgrade an Existing Project or Site

 1. Update the Radiant assets from in your project:

 rake radiant:update

 2. Migrate the database:

 rake production db:migrate

 3. Restart the web server

 --
 Jim Gay
 http://www.saturnflyer.com
___
Radiant mailing list
Post: Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
List Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Radiant: http://radiantcms.org
Extensions: http://ext.radiantcms.org


Re: [Radiant] [ANN] Radiant 0.9.0 RC2

2010-04-27 Thread banane
Great! Hurrah! Yay!



 Announcing the second release candidate of Radiant 0.9.0.

 The big news in this release internationalization. For that we have
 many developers to thank, but in particular Keith Bingman for
 organizing the effort.



___
Radiant mailing list
Post: Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
List Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Radiant: http://radiantcms.org
Extensions: http://ext.radiantcms.org


[Radiant] Custom Fields

2010-04-27 Thread Marshal Linfoot
I'm looking at using the Custom Fields extension for some pages, for example
pages with information about upcoming events. Each of these pages would have
a custom field for start/end date, location, organizer, etc. Is there any
way to create a template for these pages that would include the custom
fields (maybe with default values)? I don't see how to do this with either
the Stereotypes or Page Factory extensions.

Thanks in advance for any help/suggestions.
-- 
marshal
___
Radiant mailing list
Post: Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
List Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Radiant: http://radiantcms.org
Extensions: http://ext.radiantcms.org


[Radiant] Paperclipped extension problems

2010-04-27 Thread Marshal Linfoot
Hi all.

I've discovered a problem with the Paperclipped extension not working
properly when either the Drag or the Page Factory extensions are installed.
Working with a clean install of Radiant 0.9 (from
http://radiantcms.org/downloads/radiant-0.9.0-rc1.gem) and freezing to edge:

radiant r9 --database sqlite3
cd r9
rake radiant:freeze:edge
rake radiant:update
rake production db:bootstrap

Install the Paperclipped extension:
git clone --branch 0.9.0 git://github.com/kbingman/paperclipped.git
 vendor/extensions/paperclipped
rake production radiant:extensions:paperclipped:migrate

 this generates an error wrong number of arguments (3 for 2) which
I worked around by changing line 55 of paperclipped_extension.rb
  from  -- admin.nav[:content]  admin.nav_item(:assets, Assets,
/admin/assets)
  to  -- admin.nav[:content]  admin.nav_item(Assets,
/admin/assets)

rake production radiant:extensions:paperclipped:update

Everything works as expected until I install Drag (or Page Factory):
git clone git://github.com/squaretalent/radiant-drag-extension.git
 vendor/extensions/drag
rake production radiant:extensions:drag:migrate
rake production radiant:extensions:drag:update

Paperclipped gets messed up; the Show Assets Bucket link is shoved over to
the left of the pane and is colored blue, the popup dialog for managing
assets is not displayed properly, and the drag n drop operation no longer
works.

The order of installing the the extensions doesn't seem to matter -- same
corruption of Paperclipped.

I have no idea where or what is causing the conflict. Hopefully, someone
more skilled than me will be able to figure it out.

Thanks in advance.

-- 
marshal
___
Radiant mailing list
Post: Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
List Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Radiant: http://radiantcms.org
Extensions: http://ext.radiantcms.org