[Radiant] Sean's blogging template
I'm finally getting around to looking at the template that Sean uses for blogging: http://pastie.org/273417 (Hmm.. pastie seems broken at the moment.) Some questions: 1. The root page (/) and the /Articles page are effectively identical. Is there a reason one couldn't just render the other? I realize that the /Articles page gives you the the nicety of collapsing all articles in the admin tree view. Is there any other reason for it to have a separate existence? 2. The root page has three body parts: body, navLeft, and navRight.[1] The Articles page, and its children, the actual blog entries, have only the body part. They all use the Normal layout, which renders all three parts; the children have no navLeft or navRight, so it gets inherited from the root page. Something about this bugs me, but I can't quite articulate what it is. It seems like there should be a more elegant way to achieve the nav sidebars - yet the separation of concerns sounds logical when I explain it out loud... maybe it's just that children pages shouldn't be able to override the sidebars, or that the sidebars really feel like a layout function, not a page content function? I don't know. Anyone have any similar musings, or alternative ways to do it? I suppose I could move the nav bars into snippets, called by the layout... Jay Levitt [1] I may have renamed those; I can't remember the original. There was probably also an extended part. ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] ExpressionEngine vs radiant
Joe Van Dyk wrote: Anyone worked with ExpressionEngine? How does it compare to Radiant? I own a copy (and can sell/transfer it to you if you end up wanting to go with it). I'd hoped that, because it was a mature product, it'd be quicker to get up and running than with Radiant, where the docs weren't very complete (this was before Mohit's excellent work). In reality, EE is just as hit-and-miss as any other CMS. There are some things that work great, some what do you mean it doesn't do X? gaps, some patches upon patches in the design, and a whole lot of infrastructure to learn before you can dive in and start editing templates. EE is in the middle of a grand rewrite to 2.0, which has been on the horizon since at least last March. Meanwhile, their support team is highly responsive, but... Well, there's a strange vibe in the forums, is the best I can put it. They have an annotated user guide (like PHP), but only users who've posted 100 messages to the forums can add notes. Which means you don't get any of the I just installed this, and here's what documentation would have helped me posts. Kinda the whole point of a wiki. It felt, I dunno, controlling, in that old-school programmer way. Jay ___ 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: Phantom code when Radiant is deployed
Jon Hope wrote: Thanks guys, the RedCloth thing fixed it. I have two versions locally and it was using the older one. I still don't understand WHY this fixed it though, does the newer version add line breaks and remove clearing tags?! lol Pretty much.. :) RedCloth 3.0.4 was just horribly broken, especially with respect to BR tags, so for a year or so your only alternative was to use slightly different Textile markup or back off to 3.0.3 (which probably had its own bugs). I was sure that it wasn't a filter thing because I checked that specifically for code pages, but then if it's adding html tags I guess anything's possible :) ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
[Radiant] Metaweblog or AtomPub: anyone using it?
I want to play with some blog-posting clients. The Metaweblog extension relies on ActionWebService, which seems to be dropped from core - and although I've seen some posts about it still being supported as a gem, the site that was supporting it is gone too... clearly, it doesn't have much life left. There's an atompub-server plugin for Rails, too; I'm sure getting it working with Radiant is a Simple Matter Of Programming. http://github.com/calavera/atompub-server/tree/master Has anyone been able to use Metaweblog with Radiant 0.6.9, and has anyone played with the atompub plugin yet? Jay ___ 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 Template Contest Extended
Anton J Aylward wrote: Jay Levitt said the following on 11/14/2008 06:19 PM: Sean Cribbs wrote: I have decided to extend the Template Contest deadline to January 1, 2009. Sadly, we received no entries by the October 31 deadline. [...] So I could contribute that. BUT: It won't be a full template Are we actually artists? I'm not. Same here. To steal shamelessly from AdCritic: Sometimes I wonder if I could be doing more with my life professionally. All my performance reviews say no, as have numerous recruiters. The trouble is that a lot of the snippets are being made obsolete as new stuff gets written (like 'siblings' and other ways of doing navigation). Assets or paperclips? That's a good point; in fact, my templates are going to use several extensions, which I think makes them ineligible anyway. Jay ___ 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 Template Contest Extended
Sean Cribbs wrote: I have decided to extend the Template Contest deadline to January 1, 2009. Sadly, we received no entries by the October 31 deadline. I've been thinking that as I finish up^h^h^h^hstart my blog, it would be nice to have a DRY blogging template for Radiant. I started with Sean's, which he so nicely pastied for us, but I keep getting confused; the layouts render the pages which render their children which inherit the thing which has its own layout which... at the moment, I've got all the templates printed out and sitting on my kitchen table. So I could contribute that. BUT: It won't be a full template, in the sense that there's no art, and not much graphic design; it's really an infrastructure thing, not a ready-to-use template. It should make it easier for someone to create a nicely-done theme, though. (In fact, I was thinking that if I released it, it should have some godawful hideous colors to force users to change them...) Any interest? Jay Levitt ___ 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: radiant-tags-extension with PostgreSQL?
Benny Degezelle wrote: 5. I also think I sent a pull request to everyone else. Hope that's the right thing to do. Pull request received and handled. I cherry-picked your commits instead of merging though, because i think the tag_list_technorati stuff by ehaselwanter should go in a seperate branch. Oops, you're right.. I was blindly merging everything. Re your Weekly wacky suggestion; we coùld rename the extension (I'd prefer radiant-metatags-extension), but that is not going to stop people from referring to it as the tags extension, so I'm not too sure if that would make googling for it easier?.. yeah, probably not, unless you also changed the [radius] tags themselves - e.g. r:metatags:each, r:metatags:cloud, etc. I'm not sure if it's actually worth it; I was kinda thinking out loud. I figured either someone would love the idea, or they'd hate it. Or they'd think it's okay. Jay ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] [ANN] Conditional Tags Extension
Chris Parrish wrote: This is interesting. I'll have to think about this. Essentially what you're going for here is the removal of the attributes (something I agree with). I bet my extension would be more comfortable if only you could write: r:if content exists? I haven't thought this through, but what about separating the condition, and having it swallow the tag output? r:if matches=radiant is cool r:content / r:then This page is highly accurate! r:else Warning: This page contains factual errors. /r:if I dunno if Radius can deal with intermediary tags like that; if not, you could do r:ifr:then/r:then/r:if, but that might get ugly. And I'm not sure if the whole containing tag concept is too painful for non-techies. But ISTM that an if that can test any tag's output is mighty powerful... Jay ___ 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-tags-extension with PostgreSQL?
Jay Levitt wrote: I added Edmund Haselwanter's bug fix to my copy of the tags extension (thanks for that fix!), and now I'm trying to display a tag_cloud. But I get this error instead of a cloud: PGError: ERROR: column meta_tags.id must appear in the GROUP BY clause or be used in an aggregate function : SELECT meta_tags.*, count(*) as popularity FROM meta_tags JOIN taggings ON taggings.meta_tag_id = meta_tags.id GROUP BY taggings.meta_tag_id ORDER BY popularity DESC LIMIT 5 aaand, the answer is: 1. My wild guess at SQL was right; the :group should be - :group = taggings.meta_tag_id, + :group = meta_tags.id, meta_tags.name, 2. The 1 page is tagged with tag1 was because I hadn't read the help docs, and so I hadn't included tags.css in my page. 3. But that CSS is buggy anyway (at least on Firefox 3 Mac); it seems a better way to hide the unstyled list is: - .tag_cloud span { position: absolute; left: -999px; width: 990px; } + .tag_cloud span { position: absolute; left: 0px; top: -500px; width: 1px; height: 1px; overflow: hidden; } 4. I have NO idea what I'm doing with git yet, but (thanks to Edmund's link to the tutorials), I think I just created a fork, which includes everyone else's changes to date, at: http://github.com/jaylevitt/radiant-tags-extension.git 5. I also think I sent a pull request to everyone else. Hope that's the right thing to do. 6. If all the power goes out somewhere, let me know. It could possibly be my fault, but I'm pretty sure I canceled that in time. Jay ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] multiple domains under Phusion Passenger
Bill Barnard wrote: I'm working on a pair of sites for a client that will be on two subdomains and hosted on a shared host (Dreamhost). I thought the multi-site extension would be ideal for that but have not yet figured out how to do this under Phusion Passenger, the preferred Rails deployment method at DH. I did a similar thing for another client using the FastCGI method; I created a mirror public directory for the dev host; the dev subdomain points to that mirrored directory. The mirror dir contains mostly links back into the public dir, except for the .htaccess which has different mod_rewrite rules. I tried doing the same thing under Passenger without success. Has anyone done anything similar under Passenger? I'm searching the Passenger groups docs but have not yet found anything useful. FWIW: the Passenger docs say that mod_rewrite is overridden/ignored unless you explicitly turn it on with some httpd.conf keyword that I can't remember. However, I saw a post somewhere once upon a time that claimed that rewrite rules simply didn't work in the .htaccess, with or without that keyword - but that they did work in httpd.conf itself. I'm successfully using a rewrite rule in httpd.conf for static caching: RewriteEngine On RewriteRule ^([^.]+)$ /cache/$1.html [QSA] That help any? What failed under Passenger? Thanks! Bill ___ 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] git SVN, sitting in a tree... (was Regarding github's SnS extensions -- safe to use?)
Tim Gossett wrote: This particular problem will go away when git becomes accessible enough to Chris Parrish, and all of the SnS extensions move to github. So... what can we do to get Chris on git? :) I remember he was having trouble w/being on Windows. I've got Windows and Mac on my Mac, and though I don't know git very well, if there's any sort of hey, can you replicate this problem, I'm happy to help out. I think git's got linefeeds sorted out now, which was one of the bigger interoperability problems. Jay ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Wacky version control idea for content
Andrew Neil wrote: On 5 Oct 2008, at 00:30, Jay Levitt wrote: Just a thought I had in the shower: Most attempts at CMS version control end up reinventing large parts of subversion/git/etc. inside the database. Instead... Why not use something like FuseFS to implement a filesystem that maps the Radiant asset tree to paths like /dev/radiant/pages/home_page? Then use the version control system of your choice. That's not wacky, it's a great idea! The file_system extension was designed for this purpose. Check it out here: http://github.com/nelstrom/radiant-file-system-extension/tree/master Ah hah! I saw that yesterday, but (so far, at least) it looks like it's targeted at explicit save/loads. Are you thinking of taking it in the live filesystem direction? That would be very cool. I did a little more Googling on FuseFS, and it seems that the RubyForge project is stagnant, but that a few people have got some version of it working on some OS's sometimes... http://www.datanoise.com/articles/2007/3/9/macfuse-and-ruby-fusefs-extension I don't have an immediate need for version-control myself (other than It Would Be Cool), but, well, it WOULD be cool. Jay ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Regarding github's SnS extensions -- safe to use?
Tim Gossett wrote: I haven't updated the GitHub repo in a while because I'm not sure how to have a slave git repo sync up with a master SVN repo. Anyone? It looks like you *should* just be able to do this in your local repository: git svn rebase # pull trunk changes from svn git svn dcommit # push git changes to svn git push# push to remote repository (github) But there are a zillion caveats in the docs, so that may or may not work so well in practice with github. It sounds like you're better off keeping a local repository that's used for nothing but the git-svn syncing: http://www.kernel.org/pub/software/scm/git/docs/git-svn.html (See the Basic Examples section, which is anything but basic) Jay Levitt ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
[Radiant] Radiant settings extension: must be named settings
I had some trouble installing Alex's Settings extension. I had used it successfully before, but this time, I was getting the following errors: Could not load extension from file: radiant-settings_extension. #NameError: uninitialized constant RadiantSettingsExtension Finally, I realized that the extension wants to be named settings, not radiant-settings. I had installed it with git clone http://github.com/Squeegy/radiant-settings.git vendor/extensions/radiant-settings Oops. Alex, maybe that should be in the README? Jay Levitt ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Bootstrapping problem
Sean Cribbs wrote: [about the problem loading Page subclasses during bootstrap] http://github.com/radiant/radiant/commit/20d8f44d45f11a0e28231fdf86ded522ed927f6d This seems to have reappeared in 0.6.9; the above commit is still in place, but with PostgreSQL on Fedora Core 9, I'm getting: % rake --trace development db:bootstrap rake aborted! PGError: ERROR: relation pages does not exist : SELECT DISTINCT class_name FROM pages WHERE class_name '' AND class_name IS NOT NULL [...] /usr/lib64/ruby/gems/1.8/gems/radiant-0.6.9/app/models/page.rb:195:in `load_subclasses' [...] /srv/www/sites/blog.jay.fm/config/environment.rb:12 which is the Radiant::Initializer.run do |config| line. I've got a stock environment.rb file, and strangely, I was able to db:bootstrap the production database a few hours ago; I only ran into this because script/extension install redcloth4 apparently does the db:bootstrap (or migrate, or something) itself. Changing line 195 to be unless true or ... works around the problem during bootstrap. Jay Levitt ___ 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-static-caching-extension
Christopher Dwan wrote: Hey, I just saw this on github! http://github.com/tricycle/radiant-static-caching-extension Has anyone used it? Is this 'production ready', i.e. safe to use? I haven't seen any discussion about it.. I'm missing something.. how does this differ from page caching? Jay Levitt ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
[Radiant] Wacky version control idea for content
Just a thought I had in the shower: Most attempts at CMS version control end up reinventing large parts of subversion/git/etc. inside the database. Instead... Why not use something like FuseFS to implement a filesystem that maps the Radiant asset tree to paths like /dev/radiant/pages/home_page? Then use the version control system of your choice. A quick Googling finds an implementation of MetaWeblog API as a Ruby filesystem, which would make a good starting point: http://zzamboni.org/brt/2007/03/31/metaweblogfs-ruby-fuse-xml-rpc-oh-my/ ::Shrug:: Could be an interesting Summer of Code project for somebody[1]. Jay Levitt [1] Somebody ELSE. ___ 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 Blog setups
richard apodaca wrote: ut having had some time to work with the system I built has convinced me that this probably wasn't a good idea. (Although it was a great learning exercise.) Now I lean toward letting Radiant do what it's good at - handle static content. At the same time let blogging engines do what they're good at - handle frequently-updated content. Mixing the two isn't worth the effort, IMO As someone who's perpetually going to put my blog back up with Radiant: What did you find that Radiant didn't handle well? It seems like it *should* be easy enough to add new blog entries through the admin page, but of course, I haven't tried that yet... does it force you to do too much thinking (category, etc) before you write? Jay Levitt ___ 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: Configuring Radiant with Apache - Phusion Passenger
Josh Schairbaum wrote: Make sure you kill the Rails .htaccess in /public. This works for me with passenger: Like the others, I've had no problems with passenger 2.0.3. In fact, I don't even have to do anything to the config; it just works: VirtualHost *:80 ServerName www.wellesleycarriagehouse.com DocumentRoot /srv/www/sites/wellesleycarriagehouse.com/public CustomLog /var/log/httpd/wellesleycarriagehouse.com.access.log combined /VirtualHost Bhupi, what sort of errors are you seeing in the browser? What do the logs say? (Depending on your Linux distro, Apache might be writing its logs to /etc/httpd/logs or someplace equally odd, so be sure to look around.) ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
[Radiant] Re: Cache errors under Passenger (was: Configuring Radiant with Apache - Phusion Passenger)
Giovanni Intini wrote: I was going to post a message about a problem I'm having with radiant on passenger on a vps, but I guess I'll just reply in this thread. Actually, I suspect this thread might get a little confusing, so I forked the subject line... When I start the site it works fine, until radiant tries to regenerate the cache. When the cache expires I get a 500 error and the only solution is to clean by hand the cache directory. The ownership is ok (www-data:www-data) and the permissions are 0777. What errors do you see in the Apache logs when this happens? I've never looked at Radiant's caching, since it Just Works for me; is there a way to force the cache to expire, so I can see what happens on my (working) setup? Jay Levitt ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Can't log into wiki?
Bjørn Michelsen wrote: On Sat, 7 Jun 2008, Jay Levitt wrote: Jay Levitt wrote: At wiki.radiantcms.org, when I try to Sign In, it takes me to http://wiki.radiantcms.org/login?return_to=/Documentation. That gives me the Login/Create Account screen, with Username and Password fields. When I fill those in (username = JayLevitt), it tells me Username has already been taken. Well, yes - by me, when I logged in yesterday... I'm still seeing this, on both Firefox 3.0 nightly and Safari 3.1... ideas? You'll get the error message Username has already been taken if the password you provide is incorrect. So my guess is that you're simply entering the wrong password. Ah! No, but that was the clue I needed. It also gives that error message if you supply the wrong case on the username! (Strange..) I had registered as jaylevitt, but was trying to log in WikiName style, JayLevitt. Darn you, Junebug.. Jay ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
[Radiant] Admin hierarchy vs. URL hierarchy?
I *think* the answer is no but: Is there an easy way to separate the administrative hierarchy (parent/children) from the URL hierarchy, without getting into mod_rewrite or Rails routing? For instance, I'd like to tuck some of the administrative pages (about, search, RSS) into a folder so they don't dirty up my main Pages display. But I still want them to be at http://example.com/search and http://example.com/rss. Are there any extensions that let me specify where the slug is rooted? This is purely out of laziness and aesthetic sensibility; it's not worth me hard-coding stuff into routes. Jay ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Can't log into wiki?
Jay Levitt wrote: At wiki.radiantcms.org, when I try to Sign In, it takes me to http://wiki.radiantcms.org/login?return_to=/Documentation. That gives me the Login/Create Account screen, with Username and Password fields. When I fill those in (username = JayLevitt), it tells me Username has already been taken. Well, yes - by me, when I logged in yesterday... I'm still seeing this, on both Firefox 3.0 nightly and Safari 3.1... ideas? Jay ___ 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] Can't log into wiki?
At wiki.radiantcms.org, when I try to Sign In, it takes me to http://wiki.radiantcms.org/login?return_to=/Documentation. That gives me the Login/Create Account screen, with Username and Password fields. When I fill those in (username = JayLevitt), it tells me Username has already been taken. Well, yes - by me, when I logged in yesterday... Jay ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
[Radiant] Possibly-dumb cookie question
From 0.6.7's environment.rb: # Your secret key for verifying cookie session data integrity. # If you change this key, all old sessions will become invalid! # Make sure the secret is at least 30 characters and all random, # no regular words or you'll be exposed to dictionary attacks. config.action_controller.session = { :session_key = '_radiant_session', :secret = '...' } I just checked, and :secret doesn't seem to be site-specific. So isn't that pretty much the same as: int getRandomNumber() { return 4; // chosen by fair dice roll. // guaranteed to be random. } Jay ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Styles 'n Scripts Extension Erros
Chris Parrish wrote: Jay Levitt wrote: Yep, that works too! Good. Let me know if anything changes. I'm not using FF3 at all so I can't help you there but I am seeing some interesting headers from your server... So this makes me wonder whether or not v0.4.1 is working. Have you cleared out the text_assets cache (see above)? Yeah, but I had put the patched 0.4.0 back for a few minutes to see if 0.4.1 was causing the FOUC, so you must have hit my server right when I was doing that. Looks OK now, right? (BTW, the FOUC wasn't from Sns; it was 90% due to a race condition in the ThumbStrips plugin, and 10% to we-don't-know-yet-but-certainly-client-side.) Jay ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Importing Movable Type blog?
J Aaron Farr wrote: Jay Levitt [EMAIL PROTECTED] writes: I know Radiant isn't quite blog-ready yet, but I've got a ridiculously simple blog set up in MovableType that I want to move over. I don't care about users or comments, just posts. Can anyone think of a workflow that might help accomplish this, either through MovableType's export, a PostgreSQL dump, or even an RSS scraper? I'd hate to go cut and paste all 100 posts. I'd start off by creating an extension [1], then creating a Rake task in that extension to read in some XML export file and then create the Radiant Pages as needed. The extension's rake file will give you easy access to all of Radiant's classes and database. You might also be able to do a SQL dump and then do enough find/replaces on the SQL to bring it into Radiant's database, but I'm not sure how close the schemas are. That gives me an even better idea (in terms of I'm lazy and it's small): I could read the SQL dump, or even the RSS feed, and then script a browser session to post it to the Radiant site. Hey, I can probably even do that with AppleScript on the Mac... open two browser tabs and flip between them. So many choices. Jay ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Styles 'n Scripts Extension Erros
Chris Parrish wrote: Arik Jones wrote: = The proxy server received an invalid response from an upstream server. The proxy server could not handle the request GET /css/tinypixel.css. = I'm getting a 502 proxy error when accessing any asset from the styles n scripts extension. Checking the product logs, the process is being read correctly and all is well on rails/radiant end. But for some reason Apache doesn't want to process the GET request. Any clues as to why? I just ran into something like this, using Radiant 0.6.7, SnS 0.4, and - like Arik had been - thin, proxied through Apache. Turns out it's not an Apache thing at all: it's thin, complaining that @response['Last-Modified'] isn't a string. And it's got a point! undefined method `each' for Mon Jun 02 15:59:23 UTC 2008:Time /usr/lib64/ruby/gems/1.8/gems/thin-0.8.1/lib/thin/response.rb:49:in `headers=' /usr/lib64/ruby/gems/1.8/gems/thin-0.8.1/lib/thin/response.rb:48:in `each' Suggestion for text_asset_site_controller: # set the last modified date based on updated_at time for the asset # we can do this as long as there is no dynamic content in the assets -response.headers['Last-Modified'] = @text_asset.effectively_updated_at +response.headers['Last-Modified'] = @text_asset.effectively_updated_at.to_s response.body = @text_asset.render And I'm not much of an Apache guru. Anyone out there in Radiant land have any ideas what could trigger this? Jay ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant