RE: [Radiant] Ajax with mailer extension

2009-08-09 Thread Jordon Bedwell
You can actually just high-jack the post with JQuery and then when it sends 
back the new page you can filter it and display just that message.
__
From: radiant-boun...@radiantcms.org [radiant-boun...@radiantcms.org] On Behalf 
Of Greg Dart [greg_d...@yahoo.co.uk]
Sent: Saturday, August 08, 2009 3:48 PM
To: radiant@radiantcms.org
Subject: [Radiant] Ajax with mailer extension

Hello,

I'm new to Radiant (and fairly new to Rails) so please be gentle

I've got a contact form working using the Mailer Extension - the contact form 
is in a snippet on the sidebar of the home page. What I would like to achieve 
is that when the contact form is submitted and the email successfully sent, 
rather than redirecting to a new page, I'd like an AJAX like effect to change 
the heading of the contact form to Mail Sent!.

Based on research to date, I'm trying to follow articles about RJS and so I've 
tried adding the following to the  
../vendor/extensions/mailer/app/mail_controller.rb file:

   page.replace_html 'contactmsg', 'Mail Sent!'

Where 'contactmsg' is the id of a div in the snippet. But I get errors about 
unknown variable page. Reading further, I realise this kind of stuff should 
be in an .rjs file, in a view directory? But Radiant projects don't have 
views do they...? So how can I achieve an RJS or AJAX like effect to update 
one part of the page based on some logic happening in a controller?

If I'm going about this in completely the wrong way please feel free to 
re-direct me...

Thanks,
Greg


___
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] Problem installing mailer extension

2009-08-09 Thread exitseven
Well okay,

I just disabled other extensions and git cloned the mailer extension.
Mailer extension shows up under extensions in radiant. But I am unable
to set the page type to mailer, because it is not listed in the
dropdown.

What can I do? Why is mailer not listed in the dropdown?

Best wishes,
rainer

On Thu, Aug 6, 2009 at 10:11 PM, john muhljohnm...@gmail.com wrote:
 `script/extension install` runs both the migrate and update tasks
 regardless just to be safe. extensions that plan for this include
 empty migrate/update task to keep these messages from confusing users.

 On Thu, Aug 6, 2009 at 1:11 PM, exitsevenexitse...@gmail.com wrote:
 Hm,

 thanks for the answer. But I run the provided installer script
 (./script/extension install mailer). This script is running the
 update. Why is it doing this, if it is not needed? I did not touched
 the script.

 I know that the mailer extension needs to get configured in the mailer
 page part. But what do you mean with:
 You just need to clone the extension and config the mailer in the
 mailer page part.

 To clone? You mean copy? What do I have to copy?

 Your help will be very appreciated! Thanks!
 rainer

 On Thu, Aug 6, 2009 at 12:23 PM, Cristi Dumacristi.d...@aissac.ro wrote:
 The thing is that you don't need to run update on mailer extension.
 There's nothing to update. As there is nothing to migrate. You just need to
 clone the extension and config the mailer in the mailer page part.

 And you get that error, because the update task is not present in the
 extension.

 Cristi

 On 06.08.2009 12:29, Mamed Mamedov wrote:

 Does anyone knows if it compatible with last version of radiant (0.8)?
 I'am
 using it on 0.7.1 without any problem.
 
 Regards,
 Mamed Mamedov


 Samuel
 Goldwynhttp://www.brainyquote.com/quotes/authors/s/samuel_goldwyn.html
 - I'm willing to admit that I may not always be right, but I am never
 wrong.

 On Thu, Aug 6, 2009 at 2:20 PM, exitsevenexitse...@gmail.com  wrote:



 Hey Mamed,

 sure, thanks for the quick reply!

 ~$ ruby -v
 ruby 1.8.6 (2008-08-11 patchlevel 287) [i686-linux]
 Ruby Enterprise Edition 20090610

 ~$ rails -v
 Rails 2.3.3

 ~$ radiant -v
 Radiant 0.8.0

 Does it help?

 Best wishes,
 rainer

 On Thu, Aug 6, 2009 at 11:02 AM, Mamed Mamedovmamed.mame...@gmail.com
 wrote:


 I think there is problem with your radiant/rails/ruby versions
 cross-compatibility.. ha?
 Please give us your actual versions of radiant, rails and ruby. Thank


 you!


 
 Regards,
 Mamed Mamedov


 Mike Ditkahttp://www.brainyquote.com/quotes/authors/m/mike_ditka.html


  -


 If God had wanted man to play soccer, he wouldn't have given us arms.

 On Thu, Aug 6, 2009 at 1:45 PM, exitsevenexitse...@gmail.com  wrote:



 Hello again,

 I just tried to install the mailer extension as described

 here: http://wiki.github.com/radiant/radiant/mailer-extension
 and here (manually):
 http://wiki.github.com/radiant/radiant/installing-extensions#manual

 Unfortunately the installation process (rake) exits with:

 $ rake radiant:extensions:mailer:update --trace
 (in /home/claude/DEV/freiraumart)
 rake aborted!
 Don't know how to build task 'radiant:extensions:mailer:update'





 /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1728:in


 `[]'





 /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2050:in


 `invoke_task'





 /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in


 `top_level'





 /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in


 `each'





 /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in


 `top_level'





 /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in


 `standard_exception_handling'





 /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in


 `top_level'





 /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in


 `run'





 /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in


 `standard_exception_handling'





 /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in


 `run'





 /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31


 /opt/ruby-enterprise-1.8.6-20090610/bin/rake:19:in `load'
 /opt/ruby-enterprise-1.8.6-20090610/bin/rake:19

 What am I doing wrong? Could someone please help me?

 Thanks,
 rainer
 ___
 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:   

Re: [Radiant] Problem installing mailer extension

2009-08-09 Thread john muhl
you must be looking at old documentation - there is no longer any
mailer page type.

http://wiki.github.com/radiant/radiant/mailer-extension

On Sun, Aug 9, 2009 at 9:05 AM, exitsevenexitse...@gmail.com wrote:
 Well okay,

 I just disabled other extensions and git cloned the mailer extension.
 Mailer extension shows up under extensions in radiant. But I am unable
 to set the page type to mailer, because it is not listed in the
 dropdown.

 What can I do? Why is mailer not listed in the dropdown?

 Best wishes,
 rainer

 On Thu, Aug 6, 2009 at 10:11 PM, john muhljohnm...@gmail.com wrote:
 `script/extension install` runs both the migrate and update tasks
 regardless just to be safe. extensions that plan for this include
 empty migrate/update task to keep these messages from confusing users.

 On Thu, Aug 6, 2009 at 1:11 PM, exitsevenexitse...@gmail.com wrote:
 Hm,

 thanks for the answer. But I run the provided installer script
 (./script/extension install mailer). This script is running the
 update. Why is it doing this, if it is not needed? I did not touched
 the script.

 I know that the mailer extension needs to get configured in the mailer
 page part. But what do you mean with:
 You just need to clone the extension and config the mailer in the
 mailer page part.

 To clone? You mean copy? What do I have to copy?

 Your help will be very appreciated! Thanks!
 rainer

 On Thu, Aug 6, 2009 at 12:23 PM, Cristi Dumacristi.d...@aissac.ro wrote:
 The thing is that you don't need to run update on mailer extension.
 There's nothing to update. As there is nothing to migrate. You just need to
 clone the extension and config the mailer in the mailer page part.

 And you get that error, because the update task is not present in the
 extension.

 Cristi

 On 06.08.2009 12:29, Mamed Mamedov wrote:

 Does anyone knows if it compatible with last version of radiant (0.8)?
 I'am
 using it on 0.7.1 without any problem.
 
 Regards,
 Mamed Mamedov


 Samuel
 Goldwynhttp://www.brainyquote.com/quotes/authors/s/samuel_goldwyn.html
 - I'm willing to admit that I may not always be right, but I am never
 wrong.

 On Thu, Aug 6, 2009 at 2:20 PM, exitsevenexitse...@gmail.com  wrote:



 Hey Mamed,

 sure, thanks for the quick reply!

 ~$ ruby -v
 ruby 1.8.6 (2008-08-11 patchlevel 287) [i686-linux]
 Ruby Enterprise Edition 20090610

 ~$ rails -v
 Rails 2.3.3

 ~$ radiant -v
 Radiant 0.8.0

 Does it help?

 Best wishes,
 rainer

 On Thu, Aug 6, 2009 at 11:02 AM, Mamed Mamedovmamed.mame...@gmail.com
 wrote:


 I think there is problem with your radiant/rails/ruby versions
 cross-compatibility.. ha?
 Please give us your actual versions of radiant, rails and ruby. Thank


 you!


 
 Regards,
 Mamed Mamedov


 Mike Ditkahttp://www.brainyquote.com/quotes/authors/m/mike_ditka.html


  -


 If God had wanted man to play soccer, he wouldn't have given us arms.

 On Thu, Aug 6, 2009 at 1:45 PM, exitsevenexitse...@gmail.com  wrote:



 Hello again,

 I just tried to install the mailer extension as described

 here: http://wiki.github.com/radiant/radiant/mailer-extension
 and here (manually):
 http://wiki.github.com/radiant/radiant/installing-extensions#manual

 Unfortunately the installation process (rake) exits with:

 $ rake radiant:extensions:mailer:update --trace
 (in /home/claude/DEV/freiraumart)
 rake aborted!
 Don't know how to build task 'radiant:extensions:mailer:update'





 /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1728:in


 `[]'





 /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2050:in


 `invoke_task'





 /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in


 `top_level'





 /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in


 `each'





 /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in


 `top_level'





 /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in


 `standard_exception_handling'





 /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in


 `top_level'





 /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in


 `run'





 /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in


 `standard_exception_handling'





 /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in


 `run'





 /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31


 /opt/ruby-enterprise-1.8.6-20090610/bin/rake:19:in `load'
 /opt/ruby-enterprise-1.8.6-20090610/bin/rake:19

 What am I doing wrong? Could someone please help me?

 Thanks,
 rainer
 ___
 Radiant mailing list
 Post:   Radiant@radiantcms.org
 Search: http://radiantcms.org/mailing-list/search/
 Site:   

[Radiant] Add pagination Use ext pagination

2009-08-09 Thread Santiago Martinez

Hi,
I'm new to radiant, I try to set the pagination extension, but do not
understand, how someone can give me an example of how to use the
extension, comments, files and pages. 


 Another thing, I think the extension should be installed in vendor / 
extensions and not in vendor / plugin as the example 

 thanks
_
Drag n’ drop—Get easy photo sharing with Windows Live™ Photos.

http://www.microsoft.com/windows/windowslive/products/photos.aspx___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Problem installing mailer extension

2009-08-09 Thread exitseven
Ah, that's nice to know! Thank you. Will check that further out.

rainer

On Sun, Aug 9, 2009 at 5:32 PM, john muhljohnm...@gmail.com wrote:
 you must be looking at old documentation - there is no longer any
 mailer page type.

 http://wiki.github.com/radiant/radiant/mailer-extension

 On Sun, Aug 9, 2009 at 9:05 AM, exitsevenexitse...@gmail.com wrote:
 Well okay,

 I just disabled other extensions and git cloned the mailer extension.
 Mailer extension shows up under extensions in radiant. But I am unable
 to set the page type to mailer, because it is not listed in the
 dropdown.

 What can I do? Why is mailer not listed in the dropdown?

 Best wishes,
 rainer

 On Thu, Aug 6, 2009 at 10:11 PM, john muhljohnm...@gmail.com wrote:
 `script/extension install` runs both the migrate and update tasks
 regardless just to be safe. extensions that plan for this include
 empty migrate/update task to keep these messages from confusing users.

 On Thu, Aug 6, 2009 at 1:11 PM, exitsevenexitse...@gmail.com wrote:
 Hm,

 thanks for the answer. But I run the provided installer script
 (./script/extension install mailer). This script is running the
 update. Why is it doing this, if it is not needed? I did not touched
 the script.

 I know that the mailer extension needs to get configured in the mailer
 page part. But what do you mean with:
 You just need to clone the extension and config the mailer in the
 mailer page part.

 To clone? You mean copy? What do I have to copy?

 Your help will be very appreciated! Thanks!
 rainer

 On Thu, Aug 6, 2009 at 12:23 PM, Cristi Dumacristi.d...@aissac.ro wrote:
 The thing is that you don't need to run update on mailer extension.
 There's nothing to update. As there is nothing to migrate. You just need 
 to
 clone the extension and config the mailer in the mailer page part.

 And you get that error, because the update task is not present in the
 extension.

 Cristi

 On 06.08.2009 12:29, Mamed Mamedov wrote:

 Does anyone knows if it compatible with last version of radiant (0.8)?
 I'am
 using it on 0.7.1 without any problem.
 
 Regards,
 Mamed Mamedov


 Samuel
 Goldwynhttp://www.brainyquote.com/quotes/authors/s/samuel_goldwyn.html
 - I'm willing to admit that I may not always be right, but I am never
 wrong.

 On Thu, Aug 6, 2009 at 2:20 PM, exitsevenexitse...@gmail.com  wrote:



 Hey Mamed,

 sure, thanks for the quick reply!

 ~$ ruby -v
 ruby 1.8.6 (2008-08-11 patchlevel 287) [i686-linux]
 Ruby Enterprise Edition 20090610

 ~$ rails -v
 Rails 2.3.3

 ~$ radiant -v
 Radiant 0.8.0

 Does it help?

 Best wishes,
 rainer

 On Thu, Aug 6, 2009 at 11:02 AM, Mamed Mamedovmamed.mame...@gmail.com
 wrote:


 I think there is problem with your radiant/rails/ruby versions
 cross-compatibility.. ha?
 Please give us your actual versions of radiant, rails and ruby. Thank


 you!


 
 Regards,
 Mamed Mamedov


 Mike Ditkahttp://www.brainyquote.com/quotes/authors/m/mike_ditka.html


  -


 If God had wanted man to play soccer, he wouldn't have given us arms.

 On Thu, Aug 6, 2009 at 1:45 PM, exitsevenexitse...@gmail.com  wrote:



 Hello again,

 I just tried to install the mailer extension as described

 here: http://wiki.github.com/radiant/radiant/mailer-extension
 and here (manually):
 http://wiki.github.com/radiant/radiant/installing-extensions#manual

 Unfortunately the installation process (rake) exits with:

 $ rake radiant:extensions:mailer:update --trace
 (in /home/claude/DEV/freiraumart)
 rake aborted!
 Don't know how to build task 'radiant:extensions:mailer:update'





 /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1728:in


 `[]'





 /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2050:in


 `invoke_task'





 /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in


 `top_level'





 /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in


 `each'





 /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in


 `top_level'





 /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in


 `standard_exception_handling'





 /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in


 `top_level'





 /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in


 `run'





 /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in


 `standard_exception_handling'





 /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in


 `run'





 /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31


 /opt/ruby-enterprise-1.8.6-20090610/bin/rake:19:in `load'
 /opt/ruby-enterprise-1.8.6-20090610/bin/rake:19

 What am I doing wrong? Could someone please help me?

 Thanks,
 rainer
 

[Radiant] Fw: Ajax with mailer extension

2009-08-09 Thread Greg Dart

Thanks for the response...

OK, having read up on JQuery a bit, I can see how I might hijack the initial 
submit, but how do I intercept and filter the response?

Sorry if I'm being dim - new to this...

Thanks,
Greg

 
  You can actually just high-jack the post with JQuery and then when it sends 
 back the new page you can filter it and display just that message.
  __
  From: radiant-bounces at radiantcms.org [radiant-bounces at radiantcms.org] 
  On 
 Behalf Of Greg Dart [greg_dart at yahoo.co.uk]
  Sent: Saturday, August 08, 2009 3:48 PM
  To: radiant at radiantcms.org
  Subject: [Radiant] Ajax with mailer extension
 
 
 
  - Original Message 
  From: Greg Dart 
  To: radiant@radiantcms.org
  Sent: Saturday, 8 August, 2009 21:48:49
  Subject: Ajax with mailer extension
  
  Hello,
  
  I'm new to Radiant (and fairly new to Rails) so please be gentle
  
  I've got a contact form working using the Mailer Extension - the contact 
  form 
 is 
  in a snippet on the sidebar of the home page. What I would like to achieve 
  is 
  that when the contact form is submitted and the email successfully sent, 
 rather 
  than redirecting to a new page, I'd like an AJAX like effect to change the 
  heading of the contact form to Mail Sent!.
  
  Based on research to date, I'm trying to follow articles about RJS and so 
  I've 
 
  tried adding the following to the  
  ../vendor/extensions/mailer/app/mail_controller.rb file: 
  
 page.replace_html 'contactmsg', 'Mail Sent!'
  
  Where 'contactmsg' is the id of a div in the snippet. But I get errors 
  about 
  unknown variable page. Reading further, I realise this kind of stuff 
  should 
 be 
  in an .rjs file, in a view directory? But Radiant projects don't have 
  views 
 do 
  they...? So how can I achieve an RJS or AJAX like effect to update one part 
  of 
 
  the page based on some logic happening in a controller?
  
  If I'm going about this in completely the wrong way please feel free to 
  re-direct me...
  
  Thanks,
  Greg

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