Re: [Radiant] Using one filter by default

2008-10-02 Thread Sean Cribbs
This was removed way back in 0.6.5, primarily for technical reasons -- 
unlike PHP, you can't just make the change and expect it to take effect 
on the next request (without some knowledge of the deployment strategy).


Sean

Mohit Sindhwani wrote:

Pacifists wrote:

About your last suggestion - I've noticed that in 0.6.9 there are no
checkboxes anymore to disable the extensions as it was before. That
always looked strange to me, but I've never bothered to ask before.
  


I hadn't noticed that you can't disable an extension from within the 
Admin area.  I wonder why.


I guess this has to do with the ability to set things at the command 
line but I don't know how that is done (never needed it).


Cheers,
Mohit.
10/2/2008 | 12:36 PM.

___
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] Using one filter by default

2008-10-02 Thread Adam van den Hoven
I wonder if it would be possible to hook up the rake tasks for Ray to  
the UI (at least for those of us who aren't in a load balanced,  
multiple server situation) such that clicking the Disable button  
calls rake ray:dis name=some-extension and the Enable button calls  
rake ray:en name=some-extension.


On 2-Oct-08, at 5:07 AM, Sean Cribbs wrote:

This was removed way back in 0.6.5, primarily for technical reasons  
-- unlike PHP, you can't just make the change and expect it to take  
effect on the next request (without some knowledge of the deployment  
strategy).


Sean

Mohit Sindhwani wrote:

Pacifists wrote:

About your last suggestion - I've noticed that in 0.6.9 there are no
checkboxes anymore to disable the extensions as it was before. That
always looked strange to me, but I've never bothered to ask before.



I hadn't noticed that you can't disable an extension from within  
the Admin area.  I wonder why.


I guess this has to do with the ability to set things at the  
command line but I don't know how that is done (never needed it).


Cheers,
Mohit.
10/2/2008 | 12:36 PM.

___
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


[Radiant] How can I refresh part of a page with Ajax?

2008-10-02 Thread Nate Turnage
This is the code I have in the body part of my /works/ page. I would like to
generate tabs for each one of the child pages, and show the body part of
the /works/print/ page in the works id by default. Then have each one of the
tabs refresh the works id with it's content.

The code below works except for one small problem: it wants to put the
entire html page into the works id. I only want the content part. In the
link I cannot use double quotes because it breaks the tag. I would like to
be able to specify r:content part=body / in the link where the r:url /
tag is. Can anybody help me out with the correct syntax here to refresh the
works id with the body part of the child pages?

...
div id=works_nav
  ul
r:children:each
  lia href=javascript:void loadTab( 'r:url /' )r:breadcrumb
//a/li
/r:children:each
  /ul
/div
div id=works
/div
script
function loadTab( tab ) {
  new Ajax.Updater( 'works', tab, { method: 'get' } );
}
loadTab( '/works/print/' );
/script
...


Thanks,

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


Re: [Radiant] Snippets with Parameter(s)

2008-10-02 Thread Joe Van Dyk
On Wed, Oct 1, 2008 at 7:26 PM, Jordan Isip [EMAIL PROTECTED] wrote:
 Hi All,

 What is the best approach to generating the following HTML?

 div class='section'
  div class='section-header'
   #{ title }
  /div
  div class='section-content'
   r:yield/
  /div
 /div

 I would like to call it with something like: r:snippet 
 title=NewsNews/r:snippet.  Basically just using the snippet tag but I 
 would like to be able to pass the title as a param.

This is a good question, but I don't have an answer for you.
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Snippets with Parameter(s)

2008-10-02 Thread Joe Van Dyk
On Thu, Oct 2, 2008 at 9:46 AM, Joe Van Dyk [EMAIL PROTECTED] wrote:
 On Wed, Oct 1, 2008 at 7:26 PM, Jordan Isip [EMAIL PROTECTED] wrote:
 Hi All,

 What is the best approach to generating the following HTML?

 div class='section'
  div class='section-header'
   #{ title }
  /div
  div class='section-content'
   r:yield/
  /div
 /div

 I would like to call it with something like: r:snippet 
 title=NewsNews/r:snippet.  Basically just using the snippet tag but I 
 would like to be able to pass the title as a param.

 This is a good question, but I don't have an answer for you.

Nevermind, I do.  From http://www.ruby-forum.com/topic/125007

Usage:

To call the snippet:
r:snippet name='test-snippet' title='Joe Rules' Content is in here
/r:snippet

The snippet:
div
  h2 r:var name='title' / /h2
  p Content: r:yield / /p
/div


The code:

  # TODO Put into extension
  desc %{ crazy hack for getting params in snippets }
  tag snippet:var do |tag|
var = tag.attr['name'] || nil
if var.blank?
  %{bNO ATTR SPECIFIED/b}
else
  ret_val = nil
  content =
tag.context.instance_variable_get(:@tag_binding_stack).detect{ |slot|
slot.name == snippet}
if !content.blank?
  ret_val = content.attr[var] || nil
  if ret_val.blank?
 %{bCOULDN'T FIND ATTR #{var}/b}
  else
 %{#{ret_val}}
  end
else
%{bERROR IN GETTING CONTENT/b}
end
end
  end
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Snippets with Parameter(s)

2008-10-02 Thread Jordan Isip
Thank you! This is exactly what I needed.  Works perfectly.



- Original Message 
From: Joe Van Dyk [EMAIL PROTECTED]
To: radiant@radiantcms.org
Sent: Thursday, October 2, 2008 10:06:21 AM
Subject: Re: [Radiant] Snippets with Parameter(s)

On Thu, Oct 2, 2008 at 9:46 AM, Joe Van Dyk [EMAIL PROTECTED] wrote:
 On Wed, Oct 1, 2008 at 7:26 PM, Jordan Isip [EMAIL PROTECTED] wrote:
 Hi All,

 What is the best approach to generating the following HTML?

 div class='section'
  div class='section-header'
   #{ title }
  /div
  div class='section-content'
   r:yield/
  /div
 /div

 I would like to call it with something like: r:snippet 
 title=NewsNews/r:snippet.  Basically just using the snippet tag but I 
 would like to be able to pass the title as a param.

 This is a good question, but I don't have an answer for you.

Nevermind, I do.  From http://www.ruby-forum.com/topic/125007

Usage:

To call the snippet:
r:snippet name='test-snippet' title='Joe Rules' Content is in here
/r:snippet

The snippet:
div
  h2 r:var name='title' / /h2
  p Content: r:yield / /p
/div


The code:

  # TODO Put into extension
  desc %{ crazy hack for getting params in snippets }
  tag snippet:var do |tag|
var = tag.attr['name'] || nil
if var.blank?
  %{bNO ATTR SPECIFIED/b}
else
  ret_val = nil
  content =
tag.context.instance_variable_get(:@tag_binding_stack).detect{ |slot|
slot.name == snippet}
if !content.blank?
  ret_val = content.attr[var] || nil
  if ret_val.blank?
 %{bCOULDN'T FIND ATTR #{var}/b}
  else
 %{#{ret_val}}
  end
else
%{bERROR IN GETTING CONTENT/b}
end
end
  end
___
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] Snippets with Parameter(s)

2008-10-02 Thread Joe Van Dyk
You are welcome, good sir.

Joe

On Thu, Oct 2, 2008 at 10:30 AM, Jordan Isip [EMAIL PROTECTED] wrote:
 Thank you! This is exactly what I needed.  Works perfectly.



 - Original Message 
 From: Joe Van Dyk [EMAIL PROTECTED]
 To: radiant@radiantcms.org
 Sent: Thursday, October 2, 2008 10:06:21 AM
 Subject: Re: [Radiant] Snippets with Parameter(s)

 On Thu, Oct 2, 2008 at 9:46 AM, Joe Van Dyk [EMAIL PROTECTED] wrote:
 On Wed, Oct 1, 2008 at 7:26 PM, Jordan Isip [EMAIL PROTECTED] wrote:
 Hi All,

 What is the best approach to generating the following HTML?

 div class='section'
  div class='section-header'
   #{ title }
  /div
  div class='section-content'
   r:yield/
  /div
 /div

 I would like to call it with something like: r:snippet 
 title=NewsNews/r:snippet.  Basically just using the snippet tag but I 
 would like to be able to pass the title as a param.

 This is a good question, but I don't have an answer for you.

 Nevermind, I do.  From http://www.ruby-forum.com/topic/125007

 Usage:

 To call the snippet:
 r:snippet name='test-snippet' title='Joe Rules' Content is in here
 /r:snippet

 The snippet:
 div
  h2 r:var name='title' / /h2
  p Content: r:yield / /p
 /div


 The code:

  # TODO Put into extension
  desc %{ crazy hack for getting params in snippets }
  tag snippet:var do |tag|
var = tag.attr['name'] || nil
if var.blank?
  %{bNO ATTR SPECIFIED/b}
else
  ret_val = nil
  content =
tag.context.instance_variable_get(:@tag_binding_stack).detect{ |slot|
slot.name == snippet}
if !content.blank?
  ret_val = content.attr[var] || nil
  if ret_val.blank?
 %{bCOULDN'T FIND ATTR #{var}/b}
  else
 %{#{ret_val}}
  end
else
%{bERROR IN GETTING CONTENT/b}
end
end
  end
 ___
 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


[Radiant] Searching..

2008-10-02 Thread Joe Van Dyk
What's the current recommendation for searching a Radiant site?   Will
have a couple thousand pages to search.

I'm leaning towards using Google Search...

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


[Radiant] Radiant and Flex

2008-10-02 Thread Marcus Blankenship
Say,

Is anyone using Radiant as a back-end for Flex/Flash applications?  I'd
like to try this, but was hoping to get some pointers.

Thanks,
Marcus

Marcus Blankenship
541-882-3451 x 2558
[EMAIL PROTECTED]
Lorem ipsum dolor sit amet, consectetur...

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


Re: [Radiant] Searching..

2008-10-02 Thread Sean Cribbs
Google search will do what you want, but if you like a custom solution, 
look at the sphinx search extension:


http://github.com/digitalpulp/radiant-sphinx-search-extension/tree/master

Sphinx is pretty awesome, I'm using it on two projects now.

Sean

Joe Van Dyk wrote:

What's the current recommendation for searching a Radiant site?   Will
have a couple thousand pages to search.

I'm leaning towards using Google Search...

Joe
___
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] Radiant and Flex

2008-10-02 Thread Joe Van Dyk
On Thu, Oct 2, 2008 at 11:45 AM, Marcus Blankenship
[EMAIL PROTECTED] wrote:
 Say,

 Is anyone using Radiant as a back-end for Flex/Flash applications?  I'd
 like to try this, but was hoping to get some pointers.

You would probably want to write an extension that interfaces with the
flex application.  Not sure what the benefit of using Radiant would be
though.

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


RE: [Radiant] Radiant and Flex

2008-10-02 Thread Marcus Blankenship
First, let me acknowledge that Sean answered a very similar question to
this earlier this year, so I'm sorry for the repeat post.

I cannot find anyone on the net who's done this, so I may be barking up
a stump instead of a tree.  Let me see if I can explain why I was
considering it, and someone can tell me I'm crazy.

I currently drive my Flex content from the PHP CMS Drupal, which works
fine but feels like overkill for what I need.  My primary motivation is
quickly getting an HTML site behind my Flex application (for SEO
purposes).  Secondary, having Drupal/Radiant on the back-end gives the
site admins a way to easily update content without me having to re-code
anything.  

Drupal has an AMFPHP gateway module, which I can take advantage of in
Flex.  I think the way I could accomplish something similar with Radiant
would be to use data in XML (rss?).  Does this sound right?  Does rails
have any AMF libraries that could be integrated with Radiant?

Thanks in advance,
Marcus

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Joe Van Dyk
Sent: Thursday, October 02, 2008 12:14 PM
To: radiant@radiantcms.org
Subject: Re: [Radiant] Radiant and Flex

On Thu, Oct 2, 2008 at 11:45 AM, Marcus Blankenship
[EMAIL PROTECTED] wrote:
 Say,

 Is anyone using Radiant as a back-end for Flex/Flash applications?  
 I'd like to try this, but was hoping to get some pointers.

You would probably want to write an extension that interfaces with the
flex application.  Not sure what the benefit of using Radiant would be
though.

Joe
___
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] New wiki article: removing scaffolding from the Link Roll

2008-10-02 Thread Andrew Neil
I've written a new article for the wiki, which follows on from the  
original Creating Radiant Extensions[1] tutorial. It demonstrates  
how to remove the scaffolding from your extension, and style it so  
that it looks more like it belongs in Radiant. Find it here:


http://wiki.radiantcms.org/Radiant_extensions_without_a_scaffold

I would be very pleased if anyone could follow it though, and let me  
know if everything makes sense. It is a wiki, so do please fix any  
typos or factual errors.


I was originally planning to merge this directly into the Creating  
Radiant Extensions article. When I first read that article, it  
recommended using scaffold :link in the LinksController, but since  
Radiant moved onto Rails 2 this method hasn't worked. There is a  
section now in the article called Hacking a Scaffolded Controller and  
Views, which I hadn't seen before. I considered deleting that  
section, and replacing it with the article above, but I wondered if it  
made the article just too long.


Any thoughts?

Drew

[1]: http://wiki.radiantcms.org/Creating_Radiant_Extensions
___
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 wiki article: removing scaffolding from the Link Roll

2008-10-02 Thread John W. Long


On Oct 2, 2008, at 6:52 PM, Andrew Neil wrote:
I've written a new article for the wiki, which follows on from the  
original Creating Radiant Extensions[1] tutorial. It demonstrates  
how to remove the scaffolding from your extension, and style it so  
that it looks more like it belongs in Radiant. Find it here:


http://wiki.radiantcms.org/Radiant_extensions_without_a_scaffold

I would be very pleased if anyone could follow it though, and let me  
know if everything makes sense. It is a wiki, so do please fix any  
typos or factual errors.


I was originally planning to merge this directly into the Creating  
Radiant Extensions article. When I first read that article, it  
recommended using scaffold :link in the LinksController, but since  
Radiant moved onto Rails 2 this method hasn't worked. There is a  
section now in the article called Hacking a Scaffolded Controller  
and Views, which I hadn't seen before. I considered deleting that  
section, and replacing it with the article above, but I wondered if  
it made the article just too long.


Great stuff here Andrew. Why don't you merge this with the original  
tutorial (delete the Hacking section), but make your article a Part  
2 on a separate page. That way it will complete the original tutorial.


Excellent work on this, BTW.

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


[Radiant] Re: Re: Is there a trick to using Capistrano to deploy Radiant site?

2008-10-02 Thread Errol Siegel
Nate:

Good question.  In fact, I have another thread going (should be right 
near this one) where I am trying to sort out best practices for this 
sort of thing.

I also am playing with the import_export plugin (and running into some 
issues).  I'll post the details on the other thread shortly.

There are a couple of obvious issues to deal with when developing a site 
like this locally:

1. Syncing databases.
2. Syncing data files.  For example, page_attachments stores files in a 
subdirectory of public.
3. Syncing program files.  For example, I use a few custom extensions 
and I want to develop them locally.  I figure Capistrano is a no-brainer 
for this third requirement, and that seems to be working pretty well so 
far.
-- 
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] Re: Can page_attachments store uploads in database?

2008-10-02 Thread Errol Siegel
I think I agree that having a task sync those files is going to be the 
best way to go.

Restricting access is not really an issue as (so far) I am just using 
page_attachments for adding images to public pages.

Does anybody have any advice for how to go about this?

I'm pretty new to Capistrano.  Is there a simple way to have Capistrano 
tar up the files locally, upload them to the production server, then 
replace the existing files with the uploaded files?

The last part seems easy enough -- I get that I can use 'run' to run 
commands on the remote server.  I'm just not sure how to have it run 
commands locally and upload files.
-- 
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