Re: [Radiant] Extensions not appearing immediately ... weird
On Thu, Feb 28, 2008 at 7:14 AM, Ben K. [EMAIL PROTECTED] wrote: Yes, a restart is required for extensions to work. They would have Thanks for the reply Dan. How would I restart a shared server ... is that something I can do from the command line? Or do I just have to wait it out until it automatically restarts? It is probably started as a fcgi process, since its on a shared host? Then, just change the timestamp on public/dispatch.fcgi: $ touch path/to/dispatch.fcgi The fcgi process will restart as soon as it noticess the change, practically imediatelly. You could also send a message to the process to kill itself explicitely with a (s)kill command: $ skill -9 PID (same for the kill command). PID stands for process id. Use the ps command to find out the PID of the fcgi process: $ ps ux Or you could kill them all: $ skill -9 dispatch.fcgi (won't work for kill command) Or you could just wait for it to reastart automatically. :) Sorry, this is written for total beginners, I'm not sure how good is your command line fu. ___ Radiant mailing list Post: Radiant@lists.radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Re Comments
On Feb 11, 2008 6:43 AM, J Aaron Farr [EMAIL PROTECTED] wrote: If you're looking for a rails based forum, check out Beast: http://beast.caboo.se/ The original Beast seems not to be maintained any more. Rick Olson is taking a step in another direction with Altered Beast. More details at: http://beast.caboo.se/forums/1/topics/4650 There is Savage Beast 2 http://code.google.com/p/savage-beast-2/ with the goal of being a pluginized Beast. Also, El Dorado http://code.google.com/p/eldorado/ which started somewhat of a phpBB clone. I have no idea how hard/easy is to integrate any of these into Radiant. ___ Radiant mailing list Post: Radiant@lists.radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Problem with virtual page(s) and find_by_url
On Jan 29, 2008 9:42 PM, Sean Cribbs [EMAIL PROTECTED] wrote: It seems it might be appropriate for your PersonPage to be virtual and the PeoplePage to override find_by_url as well. Hi Sean, Thanks for the reply. Both of the PersonPage and the BioPage are virtual, and in PeoplePage I have: def find_by_url(url, live = true, clean = false) url = clean_url(url) if clean if url =~ %r{#{self.url}/?\d+/?$} children.find_by_class_name 'PersonPage' else super end end def child_url(child) clean_url #{url}/#{child.id} end I can get the pages by Page.find_by_url for the /people/ /people/18 but it doesn't work for /people/18/bio Its a wildest guess, but does it have anything to do with the fact that I'm redefining find_by_url in a virtual page (per se)? I'd say no, but just to be on the safe side... nn wrote: I have the following setup: Home Page | -- People (PeoplePage) | -- Person (PersonPage) | -- Bio (BioPage) -- Contact (ContactInfoPage) I made an extension with some Page Types (in parentheses) wich are used to display the list of people in the company and the data about a particular person, respectively (the latter being a virtual page). Since a person object carries plenty of data I need to split the data into several pages, like: /people/18 # 18 is an ID of a existing object (Person) /people/18/bio /people/18/contact ... It seems I have a problem with find_by_url in PersonPage: def virtual? true end def find_by_url(url, live = true, clean = true) url = clean_url(url) if clean if url =~ %r{#{parent.url}/\d+/bio/?$} children.find_by_class_name 'BioPage' else super end end This looks fine to my untrained eye, but: $ script/console Loading development environment. p = Page.find_by_url('/people/18/bio/') = #FileNotFoundPage:0xb709db54 @attributes={virtual=1, class_name=FileNotFoundPage, slug=file-not-found, updated_at=2008-01-24 00:47:14, title=File Not Found, created_by=1, breadcrumb=File Not Found, lock_version=2, updated_by=1, id=3, published_at=2008-01-20 23:51:27, status_id=100, layout_id=nil, parent_id=2, created_at=2008-01-20 22:51:27} Then, this works in the same console: p = Page.find_by_url('/people/18/') p.children.find_by_class_name 'BioPage' Regexp looks fine too, as far as I can tell. I know this is a cockpit problem, but I need someone to point a finger at it, since I must be (code) blind or something. BioPage is declared virtual, too (if it matters). Can anyone suggest what could be wrong? ___ Radiant mailing list Post: Radiant@lists.radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant ___ Radiant mailing list Post: Radiant@lists.radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant ___ Radiant mailing list Post: Radiant@lists.radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
[Radiant] Problem with virtual page(s) and find_by_url
I have the following setup: Home Page | -- People (PeoplePage) | -- Person (PersonPage) | -- Bio (BioPage) -- Contact (ContactInfoPage) I made an extension with some Page Types (in parentheses) wich are used to display the list of people in the company and the data about a particular person, respectively (the latter being a virtual page). Since a person object carries plenty of data I need to split the data into several pages, like: /people/18 # 18 is an ID of a existing object (Person) /people/18/bio /people/18/contact ... It seems I have a problem with find_by_url in PersonPage: def virtual? true end def find_by_url(url, live = true, clean = true) url = clean_url(url) if clean if url =~ %r{#{parent.url}/\d+/bio/?$} children.find_by_class_name 'BioPage' else super end end This looks fine to my untrained eye, but: $ script/console Loading development environment. p = Page.find_by_url('/people/18/bio/') = #FileNotFoundPage:0xb709db54 @attributes={virtual=1, class_name=FileNotFoundPage, slug=file-not-found, updated_at=2008-01-24 00:47:14, title=File Not Found, created_by=1, breadcrumb=File Not Found, lock_version=2, updated_by=1, id=3, published_at=2008-01-20 23:51:27, status_id=100, layout_id=nil, parent_id=2, created_at=2008-01-20 22:51:27} Then, this works in the same console: p = Page.find_by_url('/people/18/') p.children.find_by_class_name 'BioPage' Regexp looks fine too, as far as I can tell. I know this is a cockpit problem, but I need someone to point a finger at it, since I must be (code) blind or something. BioPage is declared virtual, too (if it matters). Can anyone suggest what could be wrong? ___ Radiant mailing list Post: Radiant@lists.radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Problem with virtual page(s) and find_by_url
On Jan 29, 2008 10:26 PM, Sean Cribbs [EMAIL PROTECTED] wrote: In this find_by_url method, you return the PersonPage if the URL is /people/18, but you don't call its find_by_url if the URL is /people/18/bio. Remove the $ from the regexp and then instead of returning children.find_by_class_name('PersonPage'), return children.find_by_class_name('PersonPage').find_by_url(url, live, clean). Then in your PersonPage, have several tests -- one that matches for itself (use the one below and substitute parent.url for self.url), and then any special cases (/bio, /contact, etc) that return the appropriate sub-page, then super. If this is unclear, write me back and I'll give more detail. OK - got it. Thanks Sean. ___ Radiant mailing list Post: Radiant@lists.radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] undefined method `find' for Status:Class
Yesterday I decided to let it sleep. Today I unfroze, then froze radiant to the :edge, again. Oh, I also upgraded rubygems and rake gems. And now it works. I feel I'm beginning to understand what they mean when they say Rails is ful of magick. Go figure. :) On Dec 20, 2007 5:09 PM, nn [EMAIL PROTECTED] wrote: I'm trying to get radiant 0.6.4 to behave, but it keeps trowing this errror at me: ActionView::TemplateError (undefined method `find' for Status:Class) on line #15 of vendor/radiant/app/views/admin/page/_node.rhtml: 12: /span 13: /td 14: % unless simple -% 15: td class=status %= page.status.name.downcase %-status%= page.status.name %/td 16: td class=add-child%= link_to image('add-child', :alt = 'add child'), page_new_url(:parent_id = page) %/td 17: td class=remove%= link_to image('remove', :alt = 'remove page'), page_remove_url(:id = page) %/td 18: % end -% This behaviour is same, regardles of the frozen radiant version (tried with 0.6.4 tag, and with edge). I've also reinstalled radiant gem, but can't lose the error. Any ideas? ___ Radiant mailing list Post: Radiant@lists.radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
[Radiant] undefined method `find' for Status:Class
I'm trying to get radiant 0.6.4 to behave, but it keeps trowing this errror at me: ActionView::TemplateError (undefined method `find' for Status:Class) on line #15 of vendor/radiant/app/views/admin/page/_node.rhtml: 12: /span 13: /td 14: % unless simple -% 15: td class=status %= page.status.name.downcase %-status%= page.status.name %/td 16: td class=add-child%= link_to image('add-child', :alt = 'add child'), page_new_url(:parent_id = page) %/td 17: td class=remove%= link_to image('remove', :alt = 'remove page'), page_remove_url(:id = page) %/td 18: % end -% This behaviour is same, regardles of the frozen radiant version (tried with 0.6.4 tag, and with edge). I've also reinstalled radiant gem, but can't lose the error. Any ideas? ___ Radiant mailing list Post: Radiant@lists.radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] i18n and Gibberish
On 6/19/07, John W. Long [EMAIL PROTECTED] wrote: Dave Olsen wrote: Not sure if this is the kind of thing you were looking for but for our CMS we've created a helper to drop in a Textile editor for text areas. http://slateinfo.blogs.wvu.edu/plugins/textile_editor_helper Slate looks really nice. Is trac broken right now or is there not an easy way to view the source? I'd like to take a peak at the source too, but slate is not open source yet: http://slateinfo.blogs.wvu.edu/blog/2007/4/3/on-open-sourcing-slate ___ Radiant mailing list Post: Radiant@lists.radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Site5 install error
On 5/6/07, keith [EMAIL PROTECTED] wrote: Now trying install with gems and get the following error when trying to unpack the application: -jailshell-3.00$ ~/gems/bin/radiant --database mysql radapp /usr/lib/site_ruby/1.8/rubygems.rb:301:in `report_activate_error': Could not find RubyGem radiant ( 0) (Gem::LoadError) I find this wiki entry helpful: http://dev.radiantcms.org/radiant/wiki/HowToSite5 You can ignore setting the ENV['HOME'] environment variable, though. It works without it. ___ Radiant mailing list Post: Radiant@lists.radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant