[Radiant] Paperclipped rake error...
getting error from rake command.. I think I need rails paginate, but not sure...?? Partial trace below. bar...@bartee-linux:~/railsprojects/myradiant$ rake development db:migrate:extensions (in /home/bartee/railsprojects/myradiant) rake aborted! undefined method `has_attachment' for #Class:0x7f998f149288 (See full trace by running task with --trace) bar...@bartee-linux:~/railsprojects/myradiant$ rake development db:migrate:extensions --trace (in /home/bartee/railsprojects/myradiant) ** Invoke development (first_time) ** Execute development ** Invoke environment (first_time) ** Execute environment rake aborted! undefined method `has_attachment' for #Class:0x7f80cc57da60 /usr/lib/ruby/gems/1.8/gems/radiant-0.6.9/vendor/rails/activerecord/lib/active_record/base.rb:1532:in `method_missing_without_paginate' /home/bartee/railsprojects/myradiant/vendor/extensions/paperclipped/vendor/plugins/will_paginate/lib/will_paginate/finder.rb:164:in `method_missing' -- 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] Custom Radiant Tags
tag 'kids:kid_sport_list' do |tag| kid = tag.locals.kid kid.sports.each do |sport| %{#{sport.name}) end end For some reason this outputs a # for each sport in kid.sports instead of the name... Would anyone know why? -- 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] Custom Radiant Tags
On Feb 3, 2009, at 11:12 AM, Little Known wrote: tag 'kids:kid_sport_list' do |tag| kid = tag.locals.kid kid.sports.each do |sport| %{#{sport.name}) end end For some reason this outputs a # for each sport in kid.sports instead of the name... Would anyone know why? looks like you have a ) where you should have a } ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
[Radiant] Re: Custom Radiant Tags
Jim Gay wrote: On Feb 3, 2009, at 11:12 AM, Little Known wrote: tag 'kids:kid_sport_list' do |tag| kid = tag.locals.kid kid.sports.each do |sport| %{#{sport.name}) end end For some reason this outputs a # for each sport in kid.sports instead of the name... Would anyone know why? looks like you have a ) where you should have a } That's just a result of me typing wrong on this forum, not causing the problem. Its correct in my code. -- 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] Custom Radiant Tags
Also, each just iterates over the collection and then returns the original collection. You'll want to use map/collect or inject instead. tag 'kids:kid_sport_list' do |tag| kid = tag.locals.kid kid.sports.map {|s| s.name.to_s }.join(, ) end Sean Jim Gay wrote: On Feb 3, 2009, at 11:12 AM, Little Known wrote: tag 'kids:kid_sport_list' do |tag| kid = tag.locals.kid kid.sports.each do |sport| %{#{sport.name}) end end For some reason this outputs a # for each sport in kid.sports instead of the name... Would anyone know why? looks like you have a ) where you should have a } ___ 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] Re: Custom Radiant Tags
On Feb 3, 2009, at 11:24 AM, Little Known wrote: Jim Gay wrote: On Feb 3, 2009, at 11:12 AM, Little Known wrote: tag 'kids:kid_sport_list' do |tag| kid = tag.locals.kid kid.sports.each do |sport| %{#{sport.name}) end end For some reason this outputs a # for each sport in kid.sports instead of the name... Would anyone know why? looks like you have a ) where you should have a } That's just a result of me typing wrong on this forum, not causing the problem. Its correct in my code. tag 'kids:kid_sport_list' do |tag| kid = tag.locals.kid result = [] kid.sports.each do |sport| result sport.name end result.join(' ') end ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
[Radiant] How to create a javascript page
I'm setting up a new Radiant site and trying to maintain all my assets in the web interface rather than uploading stuff like javascript and images to the server separately and just referring to them. I'm using the paperclipped extension. Anyway, what is the right way to create a javascript file? I've created one as a page, but the interface seems to be wrapping long lines, which is causing problems for a minified javascript that I'm trying to use. Thoughts? Thanks, Carl ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] How to create a javascript page
On Feb 3, 2009, at 11:40 AM, Carl Youngblood wrote: I'm setting up a new Radiant site and trying to maintain all my assets in the web interface rather than uploading stuff like javascript and images to the server separately and just referring to them. I'm using the paperclipped extension. Anyway, what is the right way to create a javascript file? I've created one as a page, but the interface seems to be wrapping long lines, which is causing problems for a minified javascript that I'm trying to use. Thoughts? Thanks, Carl Try http://ext.radiantcms.org/extensions/53-sns http://ext.radiantcms.org/extensions/54-sns-minifier ___ 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: Custom Radiant Tags
Thank you, very helpful! -- 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] How to create a javascript page
If you're not using SNS, you can create a layout that has the text/javascript or application/javascript content-type, put 'r:content /' in the content box, and then apply the layout to a page that contains your Javascript. Sean Jim Gay wrote: On Feb 3, 2009, at 11:40 AM, Carl Youngblood wrote: I'm setting up a new Radiant site and trying to maintain all my assets in the web interface rather than uploading stuff like javascript and images to the server separately and just referring to them. I'm using the paperclipped extension. Anyway, what is the right way to create a javascript file? I've created one as a page, but the interface seems to be wrapping long lines, which is causing problems for a minified javascript that I'm trying to use. Thoughts? Thanks, Carl Try http://ext.radiantcms.org/extensions/53-sns http://ext.radiantcms.org/extensions/54-sns-minifier ___ 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] How to create a javascript page
Thanks Sean. I actually am doing this, but the edit form is causing my minified javascript to contain carriage returns, which is causing syntax errors. Is there any way to avoid this without using SNS? On Tue, Feb 3, 2009 at 10:08 AM, Sean Cribbs seancri...@gmail.com wrote: If you're not using SNS, you can create a layout that has the text/javascript or application/javascript content-type, put 'r:content /' in the content box, and then apply the layout to a page that contains your Javascript. Sean Jim Gay wrote: On Feb 3, 2009, at 11:40 AM, Carl Youngblood wrote: I'm setting up a new Radiant site and trying to maintain all my assets in the web interface rather than uploading stuff like javascript and images to the server separately and just referring to them. I'm using the paperclipped extension. Anyway, what is the right way to create a javascript file? I've created one as a page, but the interface seems to be wrapping long lines, which is causing problems for a minified javascript that I'm trying to use. Thoughts? Thanks, Carl Try http://ext.radiantcms.org/extensions/53-sns http://ext.radiantcms.org/extensions/54-sns-minifier ___ 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] Sendfile headers
They wouldn't report a different size (all other headers are preserved), but the header gives the file a fast-track through the web-server and operating system. Essentially, it tells the OS to stream the file to the socket, on OS's that support it. Sean john muhl wrote: i've been using the old x-sendfile patch on nginx and mongrel for about a year with no blank page issues. after setting up an edge 0.7 in a virtual machine i was able to run nginx and thin in production mode with no blank pages in well over a million requests through ab (assuming those blank pages would report their size differently than the page that was supposed to be served). On Mon, Feb 2, 2009 at 9:10 PM, Sean Cribbs seancri...@gmail.com wrote: I got blank pages occasionally until I installed mod_xsendfile properly. Then, It Just Worked(tm). Sean Jason Garber wrote: And did it work in production? When I did exactly that (probably 4 months ago), I found sometimes I would get a blank page or the plain text version of the cache file. I didn't have time to figure it out, so I just turned it off again. On Feb 2, 2009, at 4:50 PM, Sean Cribbs wrote: Jason, This doesn't affect page_attachments. For Apache, I compiled and installed mod_xsendfile, and then added these two directives to my Apache config: XSendfile on XSendFileAllowAbove on And this line to config/environment.rb, inside the after_initialize block: ResponseCache.defaults[:use_x_sendfile] = true Sean Jason Garber wrote: Sean, did you use my page_attachments_xsendfile extension? If not, I'm curious how you set it up. Jason On Jan 30, 2009, at 1:23 PM, Sean Cribbs wrote: Last night at our little hack session at John's, I added the ability to support X-Accel-Redirect headers for nginx. It would be great if someone could test this addition with nginx. In config/environment.rb, put this line inside the config.after_initialize block: ResponseCache.defaults[:use_x_accel_redirect] = true Since I have seancribbs.com running the latest and hosted using Apache/Passenger, I decided to turn on X-Sendfile headers. However, Apache doesn't seem to recognize them and just serves up a blank response (with the X-Sendfile header included in the response). So my questions are two: 1) Is this just a side-effect of using Passenger? Would a proxy scenario (Mongrel, Thin, etc) work? 2) Is there something different Radiant should be doing with other headers to make it work? Additionally, if anyone could look into conditional GETs and make sure we're doing it right, that would be great. Sean ___ 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 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 mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] if_content not working as expected
On Feb 3, 2009, at 3:28 PM, N. Turnage wrote: Hey all. I am using the templates extension and I have 'address1' and 'address2' fields in a template used to hold information about a number of institutions. When I use r:children:each to iterate over the fields for each institution, some or which do not have any content in the address2 field, the bullet is still rendered using using the following block: r:children:each h5r:title //h5 p r:content part=address1 / r:if_content part=address2 bull; r:content part=address2 / /r:if_content /p /r:children:each I was expecting that because the address2 field is empty that the bullet and address2 content part would not be rendered. Is that not what is supposed to happen? Thanks, Nate In retrospect, the if_content should be called if_part, since that's what it means. if_content doesn't check for contents in the part (or whether or not the part is blank) it checks if the part exists Would it make sense if a feature was added to it so that you could do something like r:if_content part=address2 check_text=true -Jim ___ 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_content not working as expected
With templates, the part is there even if empty. You probably need a tag that checks whether the contents of the part is blank. Andrew vonderLuft has some tags that he intended to submit to core that do just that - I'll poke him about it. Sean N. Turnage wrote: Hey all. I am using the templates extension and I have 'address1' and 'address2' fields in a template used to hold information about a number of institutions. When I use r:children:each to iterate over the fields for each institution, some or which do not have any content in the address2 field, the bullet is still rendered using using the following block: r:children:each h5r:title //h5 p r:content part=address1 / r:if_content part=address2 bull; r:content part=address2 / /r:if_content /p /r:children:each I was expecting that because the address2 field is empty that the bullet and address2 content part would not be rendered. Is that not what is supposed to happen? Thanks, Nate ___ 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_content not working as expected
Jim Gay wrote: In retrospect, the if_content should be called if_part, since that's what it means. if_content doesn't check for contents in the part (or whether or not the part is blank) it checks if the part exists Ah, I see. Would it make sense if a feature was added to it so that you could do something like r:if_content part=address2 check_text=true Yes, that would be immensely helpful. ~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] if_content not working as expected
Sean Cribbs wrote: With templates, the part is there even if empty. You probably need a tag that checks whether the contents of the part is blank. Andrew vonderLuft has some tags that he intended to submit to core that do just that - I'll poke him about it. Thanks. Are there any current extensions that might help out with this? ~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] dropdown for archives by month
Thanks Sean and Mohit. I used Sean's method and it worked out real nice. Steven On Feb 3, 2009, at 1:32 AM, Mohit Sindhwani wrote: Could you create an Archive Month Index page and then use r:find ... archive page urland render the body of that archive page using r:content /into a snippet which is used for creating the dropdown? Cheers, Mohit. 2/3/2009 | 3:32 PM. Sean Cribbs wrote: No, you'll have to create an Archive Month Index page underneath your Archive page. Sean Steven Southard wrote: Is there a way to show all the archives of any month without actually making a page for it. I want to link from my dropdown to all the articles of a selected month. On Feb 2, 2009, at 1:21 PM, Sean Cribbs wrote: r:children:each:header should do most of what you need. Sean Steven Southard wrote: I'm trying to make a dropdown list for archives to sort them out by month. I was wondering if anyone has already done this and maybe wouldn't mind sharing the code they used. Steven ___ 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 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] Re: Additional templates extension strangeness
Thanks for the page status pulldown on the updates though. ;^) ~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] Counting Articles
It seems like that should work but it doesn't. First, best I can tell, the archive month index doesn't have a url. Second even if I try to exclude another article's url it doesn't change the count. On Feb 3, 2009, at 4:34 PM, john muhl wrote: might try excluding it by url r:find url=/articlesr:unless_url matches=/articles/archive r:children:count / /r:unless_url /r:find On Tue, Feb 3, 2009 at 3:03 PM, Steven Southard ste...@stevensouthard.comwrote: I was using r:find url=/articlesr:children:count //r:find to keep track of the number of articles published. Now I've added an archive month index so my count is off by one. How do I subtract one or exclude the month index? Steven ___ 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] Counting Articles
might try excluding it by url r:find url=/articlesr:unless_url matches=/articles/archive r:children:count / /r:unless_url /r:find On Tue, Feb 3, 2009 at 3:03 PM, Steven Southard ste...@stevensouthard.comwrote: I was using r:find url=/articlesr:children:count //r:find to keep track of the number of articles published. Now I've added an archive month index so my count is off by one. How do I subtract one or exclude the month index? Steven ___ 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] Counting Articles
I was using r:find url=/articlesr:children:count //r:find to keep track of the number of articles published. Now I've added an archive month index so my count is off by one. How do I subtract one or exclude the month index? Steven ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
[Radiant] Which Ba ?
I'd like to try out the conference/event management system 'Ba' that I see on GitHub. However there are 4 different copies, and one says it will blow away the database on installation! Can someone advise on which to use, please. -- life, n.: A whim of several billion cells to be you for a while. ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
[Radiant] if_content not working as expected
Hey all. I am using the templates extension and I have 'address1' and 'address2' fields in a template used to hold information about a number of institutions. When I use r:children:each to iterate over the fields for each institution, some or which do not have any content in the address2 field, the bullet is still rendered using using the following block: r:children:each h5r:title //h5 p r:content part=address1 / r:if_content part=address2 bull; r:content part=address2 / /r:if_content /p /r:children:each I was expecting that because the address2 field is empty that the bullet and address2 content part would not be rendered. Is that not what is supposed to happen? 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] Which Ba ?
oops, they're not maintained On Tue, Feb 3, 2009 at 6:28 PM, john muhl johnm...@gmail.com wrote: http://github.com/aslakhellesoy/ba/network looks like while there are some other forks their either not active or get merged with the aslakhellesoy repository regularly. On Tue, Feb 3, 2009 at 3:06 PM, Anton Aylward anton.aylw...@rogers.comwrote: I'd like to try out the conference/event management system 'Ba' that I see on GitHub. However there are 4 different copies, and one says it will blow away the database on installation! Can someone advise on which to use, please. -- life, n.: A whim of several billion cells to be you for a while. ___ 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] dropdown for archives by month
Steven Southard wrote: Thanks Sean and Mohit. You're welcome. I used Sean's method and it worked out real nice. Sean's methods usually do :) Cheers, Mohit. 2/4/2009 | 11:00 AM. ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Members Extension Won't Install Correctly
I found the original GitHub repo here: http://github.com/tekin/file_column/tree/master , but it appears that this repo: http://github.com/woahdae/file_column/tree/master is more current. My question is: do I drop file_column in Radiant's vendor/plugins directory or in the members extension vendor/plugins directory? On Jan 30, 2009, at 2:47 AM, J Aaron Farr wrote: I'm pretty sure the original file_column should work: http://www.kanthak.net/opensource/file_column/ I thought I had it setup for a submodule though. I'll have to go back and check on that. ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
[Radiant] radiant-mailer-extension Setup
Does anyone know where it's talking about when it says: You can define email templates using pages parts (email, and/or email_html). You configure the recipients and other Mailer settings in a mailer part: I can't figure out where you are supposed to change these settings so that they take effect. I have created a Page called Email and saved the sample code into it, I get the following error: Mailer config is not valid (see Mailer.valid_config?) Any ideas? ___ 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-mailer-extension Setup
On Feb 3, 2009, at 10:54 PM, Adam Farnsworth wrote: Does anyone know where it's talking about when it says: You can define email templates using pages parts (email, and/or email_html). You configure the recipients and other Mailer settings in a mailer part: I can't figure out where you are supposed to change these settings so that they take effect. I have created a Page called Email and saved the sample code into it, I get the following error: Mailer config is not valid (see Mailer.valid_config?) Any ideas? I just ran into this myself today. I'm not really sure about all the code in the mailer extension, but one problem I've found is that it tries to use an instance variable called @config for the configuration options which is the same name as one that Radiant itself uses. I've fixed this in my branch, but haven't sent a pull request to the main repo yet http://github.com/saturnflyer/radiant-mailer-extension/tree/master http://github.com/saturnflyer/radiant-mailer-extension/commits/master ___ 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-mailer-extension Setup
You will get this error if you do not have a mailer page part set up and configured correctly. I didn't create a email or email_html page parts, but just used the body part to setup the form template. Here is an example I used for the template: code r:mailer:form name=contact br/ Your Email Address: r:mailer:if_error on=fromspan class=errormessYour email address r:mailer:if_error:message //span/r:mailer:if_errorbr/ r:mailer:text name=from required=true / br/ Subject: r:mailer:if_error on=subjectspan class=errormessA subject r:mailer:if_error:message //span/r:mailer:if_errorbr/ r:mailer:text name=subject required=true / br/ Message: r:mailer:if_error on=messagespan class=errormessA message r:mailer:if_error:message //span/r:mailer:if_errorbr/ r:mailer:textarea name=message required=true cols=80/br/ input type=submit value=Send / /r:mailer:form /code Then I configured the mailer page part with the following YAML settings: redirect_to: /information/contact-us/email-sent from_field: from reply_to_field: from recipients: - m...@domain I also added a styles page part that is then included in my layout as CSS so the error messages would come out in red. The styles part is set to this: .errormess { color: red; } Hope this helps, Jason Jim Gay wrote: On Feb 3, 2009, at 10:54 PM, Adam Farnsworth wrote: Does anyone know where it's talking about when it says: You can define email templates using pages parts (email, and/or email_html). You configure the recipients and other Mailer settings in a mailer part: I can't figure out where you are supposed to change these settings so that they take effect. I have created a Page called Email and saved the sample code into it, I get the following error: Mailer config is not valid (see Mailer.valid_config?) Any ideas? I just ran into this myself today. I'm not really sure about all the code in the mailer extension, but one problem I've found is that it tries to use an instance variable called @config for the configuration options which is the same name as one that Radiant itself uses. I've fixed this in my branch, but haven't sent a pull request to the main repo yet http://github.com/saturnflyer/radiant-mailer-extension/tree/master http://github.com/saturnflyer/radiant-mailer-extension/commits/master ___ 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] Counting Articles
r:children:count / should use the default find options for page children, which is to exclude virtual pages. Just to be sure, add virtual=false and see if you get a different result. Sean Steven Southard wrote: It seems like that should work but it doesn't. First, best I can tell, the archive month index doesn't have a url. Second even if I try to exclude another article's url it doesn't change the count. On Feb 3, 2009, at 4:34 PM, john muhl wrote: might try excluding it by url r:find url=/articlesr:unless_url matches=/articles/archive r:children:count / /r:unless_url /r:find On Tue, Feb 3, 2009 at 3:03 PM, Steven Southard ste...@stevensouthard.comwrote: I was using r:find url=/articlesr:children:count //r:find to keep track of the number of articles published. Now I've added an archive month index so my count is off by one. How do I subtract one or exclude the month index? Steven ___ 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 mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant