[Radiant] Re: Re: [ANN] Radiant Podcast

2008-04-17 Thread David Piehler
Nice work on the podcast! The Digital Pulp team talks about how their clients love the Radiant admin interface -- I've experienced similar feedback from my clients. They feel empowered by Radiant, not overwhelmed. I've gotten a lot of comments like "Wait, that's all I have to do to change the t

[Radiant] Re: Access ResponseCache instance during extension activatio

2008-04-17 Thread David Piehler
Sean Cribbs wrote: > ResponseCache.instance should do the trick. Earlier today I tried: cache = ResponseCache.instance cache.clear ... and also ... ResponseCache.instance.clear Both deleted all the files from my /public directory instead of my /cache directory. What seemed to be happening was

Re: [Radiant] Access ResponseCache instance during extension activation?

2008-04-17 Thread Sean Cribbs
ResponseCache.instance should do the trick. Sean David Piehler wrote: This is kind of a weird question, but is there a way to access the current ResponseCache instance during the activation method of an extension? I'd like to be able to call its clear method to empty the cache when I start up

[Radiant] Access ResponseCache instance during extension activation?

2008-04-17 Thread David Piehler
This is kind of a weird question, but is there a way to access the current ResponseCache instance during the activation method of an extension? I'd like to be able to call its clear method to empty the cache when I start up a specific extension, so I don't have to manually empty it. Thanks! - Dav

[Radiant] Re: Re: Using Page_Attachments in custom extensions

2008-04-17 Thread David Piehler
Andrea Franz wrote: > On Thu, Apr 17, 2008 at 5:18 PM, David Piehler <[EMAIL PROTECTED]> > wrote: >> >> I guess what I am really asking is if I can take advantage of these >> existing plug-ins, or if I need to use attachment_fu and wymeditor on >> their own in my new extensions. I'm assuming the l

Re: [Radiant] Subdomains and old urls

2008-04-17 Thread Chris Barnes
I've got it built but its only doing 302 redirects until I figure out how to pass a status into response.redirect but I went ahead and released it anyway. http://www.randomutterings.com/projects/page_redirect/ I'm open to opinions and suggestions on the code and also writing a test for it. You c

Re: [Radiant] Subdomains and old urls

2008-04-17 Thread Chris Barnes
This is great stuff guys, thanks. I have it all working but it redirects "302 Found" even if I use the following. response.redirect(part(:body).content, "301 Moved Permanently" I've tried googling for answers but all I can find on redirecting 301 in ruby is to use redirect_to which is not availa

Re: [Radiant] Re: Using Page_Attachments in custom extensions

2008-04-17 Thread Andrea Franz
On Thu, Apr 17, 2008 at 5:18 PM, David Piehler <[EMAIL PROTECTED]> wrote: > > I guess what I am really asking is if I can take advantage of these > existing plug-ins, or if I need to use attachment_fu and wymeditor on > their own in my new extensions. I'm assuming the latter, right? > I think you

Re: [Radiant] Subdomains and old urls

2008-04-17 Thread Sean Cribbs
Chris, You'll need to make an extension, first, put the page class in the extension under app/models, and then "mention" it in the activate method of your extension class, like so: class RedirectExtension < Radiant::Extension # def activate RedirectPage end end At some point, I'd l

[Radiant] Re: Subdomains and old urls

2008-04-17 Thread David Piehler
David Piehler wrote: > Chris Barnes wrote: >> How do you get the new page type to show as an option under page types >> in the radiant admin? > > The way I've done it in the past is (example from my Schools extension): > > In .../schools/schools_extension.rb > > def activate > admin.tabs.add

[Radiant] Re: Subdomains and old urls

2008-04-17 Thread David Piehler
Chris Barnes wrote: > How do you get the new page type to show as an option under page types > in the radiant admin? The way I've done it in the past is (example from my Schools extension): In .../schools/schools_extension.rb def activate admin.tabs.add "Schools", "/manage/schools", :after =>

[Radiant] Re: Using Page_Attachments in custom extensions

2008-04-17 Thread David Piehler
David Piehler wrote: > I'm building a few extensions for a client project and would like to tie > Page_Attachments and WYMeditor into the new/edit screens of my > extensions. Currently Shards allows these two extensions to integrate > with Radiant's page editing tools, but how would I get them to p

Re: [Radiant] Subdomains and old urls

2008-04-17 Thread Chris Barnes
How do you get the new page type to show as an option under page types in the radiant admin? On Thu, Apr 17, 2008 at 9:45 AM, Sean Cribbs <[EMAIL PROTECTED]> wrote: > I did something similar for Redken... essentially create a new Page type > called RedirectPage that does the redirection for you:

Re: [Radiant] Subdomains and old urls

2008-04-17 Thread Sean Cribbs
I did something similar for Redken... essentially create a new Page type called RedirectPage that does the redirection for you: class RedirectPage < Page def process(request, response) response.redirect(part(:body).content, "301 Moved Permanently") end end Then fill in the URL in the "body

Re: [Radiant] Re: Subdomains and old urls

2008-04-17 Thread Chris Barnes
I may be dense here but I'm not getting it from the readme. How can I use the multi-site plugin to create 301 redirects? On Thu, Apr 17, 2008 at 4:12 AM, Arik Jones <[EMAIL PROTECTED]> wrote: > Checkout the multi-site plugin below. I think it would work well for > what you need. :) > > http://sv

Re: [Radiant] New Radiant powered site

2008-04-17 Thread Andrea Franz
On Wed, Apr 16, 2008 at 6:53 PM, Marshal Linfoot <[EMAIL PROTECTED]> wrote: > Hi all. > > I wanted to say a big "thank you" to everyone involved in the Radiant > development and also to everyone contributing tips/suggestions on the > mailing list. I'm using Radiant for a fairly simple website and

[Radiant] Re: Subdomains and old urls

2008-04-17 Thread Arik Jones
Checkout the multi-site plugin below. I think it would work well for what you need. :) http://svn.radiantcms.org/radiant/trunk/extensions/multi_site/README Chris Barnes wrote: > I ended up leaving the blog on typo and its running at > blog.randomutterings.com. The rest of the site is now on ra