Re: [Radiant] Re: script/extension install in production mode

2008-10-12 Thread Adam van den Hoven

Ben,

If you look at the article on setting up radiant on Dreamhost, you'll  
see that I only install Ray using script/extension and after that I  
would use:


rake production ray:ext name=gallery hub=pilu fullname=radiant-gallery

There is nothing special about DH in this respect, I would suggest it  
to anyone.


On 12-Oct-08, at 9:32 PM, Ben Morrow wrote:


john wrote:

Looks like you should also be able to set

ENV['RAILS_ENV'] ||= 'production'



Thanks for the suggestion John, but I already uncommented that line.

--
Posted via http://www.ruby-forum.com/.
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


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


[Radiant] Re: script/extension install in production mode

2008-10-12 Thread Ben Morrow
john wrote:
> Looks like you should also be able to set
> 
> ENV['RAILS_ENV'] ||= 'production'


Thanks for the suggestion John, but I already uncommented that line.

-- 
Posted via http://www.ruby-forum.com/.
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


[Radiant] is it possible to make it better in gallery extension and radius

2008-10-12 Thread Pacifists
Hello,

I need to have a visual element every 4 galleries (every row of 4
galleries), atm I have code like this:

 

   
 
   
 
...
   

   
 


   

   

  
   
 
   
...
   

 
 

  




I know that I have exactly 8 galleries atm, but would like to make it
universal, but couldn't find a way to make it. Would be gratefull for
any suggestions.

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


[Radiant] Re: script/extension install in production mode

2008-10-12 Thread Ben Morrow
Jim Gay wrote:
> script/extension install gallery RAILS_ENV=production

Hmm.. still get the same:

[concrete]$ ruby script/extension install gallery RAILS_ENV=production
gallery is already installed.

[concrete]$ ruby script/extension uninstall gallery RAILS_ENV=production
rake aborted!
Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)


My development setting in database.yml is:

development:
  adapter: mysql
  database: radiant_dev
  username: root
  password:
  socket: /tmp/mysql.sock

...which is why I think it is using that setting rather than production.


-- 
Posted via http://www.ruby-forum.com/.
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] New radiant site

2008-10-12 Thread Mohit Sindhwani

Hi Luis


Issues
The only issue I had is that sometimes the documentation was a little
sketchy, especially on some of the extensions. Maybe something I can
contribute to.
  


As you're probably aware, we're working on a documentation project that 
tries to address exactly this problem.  Already, for some of the 
extensions, we've written up small guides including screenshots and 
usage instructions! 


For example, the following:
http://wiki.radiantcms.org/Copy_and_Move
http://wiki.radiantcms.org/Reorder

Going ahead, we hope hope that you'll be able to use your experience to 
add to it.  That way, it'll become a very useful resource for all.


Thanks
Mohit.


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


Re: [Radiant] script/extension install in production mode

2008-10-12 Thread john

Looks like you should also be able to set

ENV['RAILS_ENV'] ||= 'production'

in environment.rb

On 2008/10/12, at 20:32, Jim Gay wrote:


script/extension install gallery RAILS_ENV=production

On Oct 12, 2008, at 10:20 PM, Ben Morrow wrote:


How can I set "ruby script/extension install [gallery]" to run in
production mode?

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


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


Re: [Radiant] script/extension install in production mode

2008-10-12 Thread Jim Gay

script/extension install gallery RAILS_ENV=production

On Oct 12, 2008, at 10:20 PM, Ben Morrow wrote:


How can I set "ruby script/extension install [gallery]" to run in
production mode?

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


[Radiant] script/extension install in production mode

2008-10-12 Thread Ben Morrow
How can I set "ruby script/extension install [gallery]" to run in
production mode?

[concrete]$ ruby script/extension install gallery
Initialized empty Git repository in /tmp/gallery/.git/
remote: Counting objects: 759, done.
remote: Compressing objects: 100% (320/320), done.
remote: Total 759 (delta 378), reused 759 (delta 378)
Receiving objects: 100% (759/759), 230.00 KiB, done.
Resolving deltas: 100% (378/378), done.
rake aborted!
Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

(See full trace by running task with --trace)
rake aborted!
Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

(See full trace by running task with --trace)

This error usually happens when I forget to include 'production' in a
rake command. I'm not sure how to specify the environment in a "ruby
script" command.

Thanks in advance!
Ben
-- 
Posted via http://www.ruby-forum.com/.
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] if_status tag

2008-10-12 Thread Andrew O'Brien
Hey Sean,

My original reason I submitted that ticket/patch was to be able to
conditionally format a layout so that it would be easy to style the
page if it was still a draft on the dev server (e.g. putting a red
border around the body and big text that said "DRAFT").  This way, my
content creators would remember to set the status to Published when it
was ready to go.

-Andrew

On Sun, Oct 12, 2008 at 2:23 PM, Sean Cribbs <[EMAIL PROTECTED]> wrote:
> Those changes have not been applied to the core.  What would you use an
>  for?  Only published pages will be visible on the live
> site.
>
> Sean
>
> Jeffrey Jones wrote:
>>
>> Howdy all,
>>
>> I found a link on google regarding the addition of the  tag.
>>
>>
>> http://209.85.175.104/search?q=cache:0W0Pp72tSwkJ:dev.radiantcms.org/ticket/598+%3Cr:if_status+/%3E&hl=en&ct=clnk&cd=1
>>
>> One of the comments asks for  and  tags to
>> be added as well. It doesn't look like this was done since a second patch
>> file wasn't attached. Am I incorrect here? I have tried the 
>> tag as described in that commend but am getting an invalid tag error.
>>
>> If I am correct, are there any plans on putting this in soon?
>>
>> Many thanks
>>
>> Jeff Jones
>>
>>
>> ___
>> Radiant mailing list
>> Post:   Radiant@radiantcms.org
>> Search: http://radiantcms.org/mailing-list/search/
>> Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
>>
>
> ___
> Radiant mailing list
> Post:   Radiant@radiantcms.org
> Search: http://radiantcms.org/mailing-list/search/
> Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
>
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] if_status tag

2008-10-12 Thread Jeffrey Jones

Hi Sean.

The scenario is that I want to list all children of a current page for a 
navigation menu and create links only if the page is, for example, 
published. If the page isn't published then I just want to output the 
name of the page.


I am creating a new site for an organisation which has a old pokey site 
with a colossal number of pages and content. They want to be able to let 
existing users know if a page has been ported (working link) or not 
(Text but no link) but also let new users know that "Yes this page 
exists, it isn't ready yet but we are working on it" with a nice full 
navigation menu.


Because the porting process will take a while if they only displayed 
published pages the site navigation menus would be very very small.


   
 
   
 
  (Under 
construction)

   
 



Cheers

Jeff

Sean Cribbs wrote:
Those changes have not been applied to the core.  What would you use 
an  for?  Only published pages will be visible on 
the live site.


Sean

Jeffrey Jones wrote:

Howdy all,

I found a link on google regarding the addition of the  tag.

http://209.85.175.104/search?q=cache:0W0Pp72tSwkJ:dev.radiantcms.org/ticket/598+%3Cr:if_status+/%3E&hl=en&ct=clnk&cd=1 



One of the comments asks for  and  tags 
to be added as well. It doesn't look like this was done since a 
second patch file wasn't attached. Am I incorrect here? I have tried 
the  tag as described in that commend but am getting an 
invalid tag error.


If I am correct, are there any plans on putting this in soon?

Many thanks

Jeff Jones


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



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

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


Re: [Radiant] if_status tag

2008-10-12 Thread Sean Cribbs
Those changes have not been applied to the core.  What would you use an 
 for?  Only published pages will be visible on the 
live site.


Sean

Jeffrey Jones wrote:

Howdy all,

I found a link on google regarding the addition of the  tag.

http://209.85.175.104/search?q=cache:0W0Pp72tSwkJ:dev.radiantcms.org/ticket/598+%3Cr:if_status+/%3E&hl=en&ct=clnk&cd=1 



One of the comments asks for  and  tags 
to be added as well. It doesn't look like this was done since a second 
patch file wasn't attached. Am I incorrect here? I have tried the 
 tag as described in that commend but am getting an 
invalid tag error.


If I am correct, are there any plans on putting this in soon?

Many thanks

Jeff Jones


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



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


[Radiant] if_status tag

2008-10-12 Thread Jeffrey Jones

Howdy all,

I found a link on google regarding the addition of the  tag.

http://209.85.175.104/search?q=cache:0W0Pp72tSwkJ:dev.radiantcms.org/ticket/598+%3Cr:if_status+/%3E&hl=en&ct=clnk&cd=1

One of the comments asks for  and  tags to 
be added as well. It doesn't look like this was done since a second 
patch file wasn't attached. Am I incorrect here? I have tried the 
 tag as described in that commend but am getting an invalid 
tag error.


If I am correct, are there any plans on putting this in soon?

Many thanks

Jeff Jones


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


[Radiant] New radiant site

2008-10-12 Thread Luis Lebron
I just built my first radiant site: www.parroquiaholyspirit.com. It's still
a work in progress.

I really enjoyed working with Radiant and the community around it.

Details
Since we were on a shoestring budget we chose a free template from
www.oswd.org to build our site. Which brings me to of my favorite things
about Radiant: most CMS force you to massage the template so that it works
with the particular CMS and you end up with all of the sites that look
pretty much the same, with Radiant you "massage" Radiant so that it works
with the template you have chosen. The template had 4 different page layouts
which I implemented using Radiant's layouts. The header, main and footer
menus took advantage of snippets. The css for the menus was based on this
article http://www.htmldog.com/articles/suckerfish/dropdowns/. For the
contact form I installed the mailer extension and built the form around it.
This may not be the best practice, but I just parked the css files in the
public/stylesheets folder.

Issues
The only issue I had is that sometimes the documentation was a little
sketchy, especially on some of the extensions. Maybe something I can
contribute to.

Future project
I am planning on having an events extesion that would allow
1. The admin to add/publish and delete events on a page based on an event
category
2. Users to submit events for publication

Suggestions
I think it would be useful if we split the user role into 2: authors and
editors. The main difference would be that authors can only create draft
content, editors would have the same rights as the current user role.

Thanks for a great tool.


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


[Radiant] Rake census:layouts

2008-10-12 Thread Andrew Neil
I just wrote a rake task for showing stats about how many pages are  
using each Layout. I'm spring cleaning a site which uses unique  
layouts for quite a few pages. There are a few old drafts which are no  
longer in use, so I wanted to know which layouts I could discard.


I thought it might be useful for others, so I'll share it here.

http://pastie.org/290611

Just paste that code into a file called: /lib/tasks/census.rake then  
run:


rake (production) census:layouts

Anyone fancy having a go at doing the same for snippets?
(hint: it's non-trivial ;)

Cheers,
Drew
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


[Radiant] Snippet hierarchy?

2008-10-12 Thread Jeffrey Jones

Hi everybody

Has anyone thought about the possibility creating a snippet hierarchy? 
On a site I am currently working on I will have a bunch of snippets 
which will probably have to be translated into different languages. It 
would be useful to be able to organise them on the site into a 
hierarchy. I see two ways of doing this


Easier way:

Still require each snippet to be uniquely named to make the /> unchanged. (i.e. "navigation_english" for an english navigation snippet)


harder way:

Allow snippets to share the same names and then make the  
tag name attribute reflect the category name and the snippet name (i.e. 
"english_navigation" for a navigation snippet in the english category.)


In either case, in terms of the front-end, copy the tree hierarchy from 
the pages section. Back-end would require an extra column for parent_id 
and a type if we wanted to make a category separate from an actual snippet.


I think this could probably be done in an extension but my coding skills 
are weak weak weak. Anyone tried to do something like this before?


Regards

Jeffrey Jones

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