[Radiant] Question about extension installation
Hey all, I am a rookie user of radiant CMS. Currently I am stuck by the extenstion installation (blog extension, and sns extension). What I did was to download the extension zip file, unpack it into my project directory (...vendor/extensions). And then I ran the command rake production db: migrate: extensions It gave me the following error message: Could not load extension from file: blog_extension. #NameError: uninitialized constant BlogExtension Could not load extension from file: sns_extension. #NameError: uninitialized constant SnsExtension rake aborted! Don't know how to build task 'db:' I assume it might be configuration issue. I am using Windows Vista and the latest version of radiant version. But this is only my guess. Anyone have any idea with my problem. Any suggestions are appreciated. -- Thank you for your time and patience! Best, Wentao Wang ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Question about extension installation
Wentao Wang wrote ... I am a rookie user of radiant CMS. Currently I am stuck by the extenstion installation (blog extension, and sns extension). What I did was to download the extension zip file, unpack it into my project directory (...vendor/extensions). And then I ran the command rake production db: migrate: extensions It gave me the following error message: Could not load extension from file: blog_extension. #NameError: uninitialized constant BlogExtension Could not load extension from file: sns_extension. #NameError: uninitialized constant SnsExtension rake aborted! Don't know how to build task 'db:' I assume it might be configuration issue. I am using Windows Vista and the latest version of radiant version. But this is only my guess. Anyone have any idea with my problem. Any suggestions are appreciated. It looks like you have spaces in the rake command where they don't belong. Try rake production db:migrate:extensions (note that there are no spaces around the colons). Also make sure the extensions live in their own subdirectory under .../vendor/extensions (i.e., .../vendor/extensions/blog_extension and .../vendor/extensions/sns_extension). I've never looked at a zip file for an extension so I don't know how they're packaged, but if the extension files are in the wrong location, that could be the cause of the load errors. -- David Cato o...@crunchyfrog.net ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] FAQ Extension
Elaborating on Mohit's suggestion... Parent Index page: div class=faqlist ol r:children:each lia href=#r:slug /r:title //a/li /r:children:each /ol /div r:children:each div class=faqitem a name=r:slug /h3r:title //h3/a r:content / /div /r:children:each Sample child page (question as the title of the page) pTo be or not to be, that is the question/p Here it is on my site: http://www.octopusgardenyoga.com/FAQ Hope this is helpful to someone. Suggestions for improvement always welcome. On Mon, Jun 29, 2009 at 10:34 PM, Mohit Sindhwanit...@onghu.com wrote: Jim Gay wrote: On Jun 25, 2009, at 3:30 PM, Merk S wrote: Hi Guys, Before i write this myself, i was wondering if anyone has already worked on or is aware of an existing FAQ extension? Googling has been tough due to 'FAQ' turning up lots of helps/tutorial pages for ruby/radiant. :) thanks!! If you only need something like a question a page, then it's not a bad idea to have just an FAQ index page with each question being a question. Then, at the index page, just collect the questions by doing a r:children:each and show the body of the child page. You could even make each of the questions an anchor by giving a name to the div. Search a thread called Index at top of page in the archive to see what I mean. Cheers, Mohit. 6/30/2009 | 10:34 AM. ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant -- marshal ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Question about extension installation
you might have a look at: http://wiki.github.com/radiant/radiant/installing-extensions and see if that helps at all. On Mon, Jul 6, 2009 at 3:40 PM, Wentao Wangedwardwen...@gmail.com wrote: Hey all, I am a rookie user of radiant CMS. Currently I am stuck by the extenstion installation (blog extension, and sns extension). What I did was to download the extension zip file, unpack it into my project directory (...vendor/extensions). And then I ran the command rake production db: migrate: extensions It gave me the following error message: Could not load extension from file: blog_extension. #NameError: uninitialized constant BlogExtension Could not load extension from file: sns_extension. #NameError: uninitialized constant SnsExtension rake aborted! Don't know how to build task 'db:' I assume it might be configuration issue. I am using Windows Vista and the latest version of radiant version. But this is only my guess. Anyone have any idea with my problem. Any suggestions are appreciated. -- Thank you for your time and patience! Best, Wentao Wang ___ 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 Extension
Hi, You might like to have a look at these extensions: http://github.com/pilu/radiant-newsletter/tree/master http://github.com/nelstrom/radiant-subscriber-lists-extension/tree/master I wrote the subscriber_lists extension to gather email addresses through a form on the website. It is basically a simplified version of the newsletter extension (which is much more ambitious). The newsletter extension also allows you to send emails to all of the email addresses that you gather through the form. At the time I tried it out, I was unable to make rails send email using a googlemail address, but I think that might have been fixed since. Both of these extensions are quite out of date, so they might need a bit of work to get them working with the current version of Radiant. I think they worked fine on Radiant 0.6.9. I don't intend to update the subscriber list extension. If anyone would like to take over it's maintenance, that's grand. For myself, I would always choose to let a 3rd party deal with subscriber lists in the future. The likes of MailBuild (http://www.mailbuild.com/) offers code snippets that you can include in your templates. I recommend that you try them out. Cheers, Drew On 4 Jul 2009, at 09:54, Victor Pereira wrote: Hi, i'm trying to write a simple extension to store emails, that users can entry thru the newsletter form in one of the default templates. So i changed the snippet newsletter to something like that: div class=box h3Our Newsletter/h3 form action=/newsletter/ send method=get input class=email value=Enter your email address... type=text id=email name=name / input class=subscribe type=submit value=Subscribe / /form /div my route at my extension.rb is something like: define_routes do |map| map.connect '/newsletter/send', :controller='newsletter',:action='send' end As a test i tried to call my controller/action like that: http://localhost:3000/newsletter/send?email=vpere...@web.de It didnt work, my controller is like that: class NewsletterController ApplicationController no_login_required #skip_before_filter :verify_authenticity_token def send #...@news = Newsletter.find_or_create_by_email(params[:email]) @news = Newsletter.new(params[:email]) @news.save flash[:notice] = Your e- mail was added to our newsletter redirect_back_or_default(/) end end Questions: 1) I cannot use a normal form syntax in my html? 2) I cannot access the params at my controller? Thanks! ___ 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] radiant and passenger module to nginx
Good day all. I've been using several radiant installations, running them standalone and proxing them with nginx. Now I've tried to reconfigure my server and use passenger module to nginx. I successfully get my site on... But, /admin page is not working. It says 404 error for me. Not really a surprise, cause there is no /admin directory in my site /public place. I've googled a lot, but with no results. No another reason: I want a help from community. How to say to passenger, that admin is in the radiant source? Thx a lot in advance. -- WBR, Yuri Pac ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] FAQ Extension
Marshal Linfoot wrote: Elaborating on Mohit's suggestion... Parent Index page: div class=faqlist ol r:children:each lia href=#r:slug /r:title //a/li /r:children:each /ol /div r:children:each div class=faqitem a name=r:slug /h3r:title //h3/a r:content / /div /r:children:each Sample child page (question as the title of the page) pTo be or not to be, that is the question/p Here it is on my site: http://www.octopusgardenyoga.com/FAQ Hope this is helpful to someone. Suggestions for improvement always welcome. Looks cool :) Want to add this to the wiki? Cheers, Mohit. 7/7/2009 | 9:08 AM. ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant