Re: [Radiant] wiki vandalism
Why not just revert it? Verison 111 looks relatively clean. You can revert on github right? michael starke wrote: > I just started the splitting, and checked some 5 pages to be spam or > not. I marked them as "spam?" and moved the ones i identified as valid > radiant ones to the top one (i used the /admin url to test for > radiant, so it's probably not very good for testing every page ;) ) > > perhaps i find the time to got through some more entries. > > michael > > > On 15.02.2010, at 18:42, john muhl wrote: > > >> http://wiki.github.com/radiant/radiant/radiant-users has pretty much >> been ruined by a spammer. after bringing it to the attention of github >> they banned the user but all the spam they left is still there. if you >> have a valid listing on that page perhaps you could move it to another >> list above the current one then when time permits someone could go >> through the remainder and get rid of the spam. >> >> the github support guy said the page itself is probably going to be a >> hotspot for spam so if anyone has any ideas on someway to reduce the >> chance of future spam there i'm all ears. maybe just changing to a >> more complicated style (like the radiant pros page) would make it >> easier to spot. >> ___ >> Radiant mailing list >> Post: Radiant@radiantcms.org >> Search: http://radiantcms.org/mailing-list/search/ >> List Site: http://lists.radiantcms.org/mailman/listinfo/radiant >> Radiant: http://radiantcms.org >> Extensions: http://ext.radiantcms.org >> > > > ___m i c h a e l s t a r k e > co-founder of > HicknHack Software GbR > www.hicknhack.com > Graphics > > ___c o n t a c t > +49 (170) 3686136 > +49 (351) 4045428 > cont...@hicknhack.com > > ___H i c k n H a c k S o f t w a r e G b R > maik lathan - andreas reischuck - michael starke > hübnerstraße 8 > 01069 dresden - germany > > ___ > Radiant mailing list > Post: Radiant@radiantcms.org > Search: http://radiantcms.org/mailing-list/search/ > List Site: http://lists.radiantcms.org/mailman/listinfo/radiant > Radiant: http://radiantcms.org > Extensions: http://ext.radiantcms.org > ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ List Site: http://lists.radiantcms.org/mailman/listinfo/radiant Radiant: http://radiantcms.org Extensions: http://ext.radiantcms.org
Re: [Radiant] Simple graphical charts
It isn't built into Radiant and as far as I know making an extension to do so beyond a very VERY basic level would not be trivial. You would have to create a wrapper to gruff or one of the other charting plugins. Doable but not done yet (as far as I know) Jeff Mamed Mamedov wrote: Hi all! Does anybody knows is there any extension or feature in radiant for creating simple charts? (dynamics). Regards, Mamed Mamedov ___ 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] Major error with Google_Maps extension
This has been fixed in tag 1.3.1 N. Turnage wrote: Wherever I have placed a map on a page, I get this error: *undefined method `attr' for {"name"=>"markerInfo"}:Hash* It doesn't matter what I put in the marker text box on a map marker, it always gives me this error. This happened when I updated the google_maps extension. I am guessing the "cac6eba" commit is what did it. Pastie with trace: http://pastie.org/474979 ~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] rspec 1.2.2 | radiant 0.7.1 anybody?
Ahoi Sean, Just to let you know that, as far as I can tell, you are off the hook on this one as even when I use config.gem to try and make radiant use 1.1.12 it still gurgles and dies with an error trying to activate 1.2.x I think it is a general rspec failure rather than anything Radiant specific. Jeff Sean Cribbs wrote: My apologies - I should have linked Radiant to a specific version of RSpec. Going forward, we will be doing that and constraining the activated version with config.gem. Part of the reason I switched to Cucumber in edge (besides its raw AWESOMENESS) is because RSpec 1.2 broke spec_integration. Sean Jeffrey Jones wrote: Yes, Radiant 0.7.1 Rspec only works with 1.1.12 and, from my experience, merely having Rspec 1.2.x installed totally FUBARs Rspec 1.1.12. There is a bug on the rspec tracker mentioning this but no movement on it yet. https://rhomobile.lighthouseapp.com/projects/16701/tickets/144-cant-activate-rspec-1112-runtime-already-activated-rspec-120 I have no solution or workaround for this issue. Jeff Enrico Teotti wrote: Hi, I was happily running my test suite (rspec+cucumber) in my radiant extension. I've frozen the rspec gems inside /vendor/gems rspec-1.1.12rspec-rails-1.1.12 I've deployed that project, and started to work on some other rails project and installed rspec 1.2.2 and 1.2.4. Today I had to change something in the radiant project, and rake spec returns: http://pastie.org/454312 Only after removing rspec (and rspec-rails) 1.2.2 1.2.4 my test are running fine again. Any clue why? "RubyGem version error: rspec(1.1.11 not = 1.2.4) (Gem::LoadError)" doesn't look good to me :-\ Is anybody running the same versions or radiant and rspec? Cheers, Enrico ___ 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] rspec 1.2.2 | radiant 0.7.1 anybody?
Yes, Radiant 0.7.1 Rspec only works with 1.1.12 and, from my experience, merely having Rspec 1.2.x installed totally FUBARs Rspec 1.1.12. There is a bug on the rspec tracker mentioning this but no movement on it yet. https://rhomobile.lighthouseapp.com/projects/16701/tickets/144-cant-activate-rspec-1112-runtime-already-activated-rspec-120 I have no solution or workaround for this issue. Jeff Enrico Teotti wrote: Hi, I was happily running my test suite (rspec+cucumber) in my radiant extension. I've frozen the rspec gems inside /vendor/gems rspec-1.1.12rspec-rails-1.1.12 I've deployed that project, and started to work on some other rails project and installed rspec 1.2.2 and 1.2.4. Today I had to change something in the radiant project, and rake spec returns: http://pastie.org/454312 Only after removing rspec (and rspec-rails) 1.2.2 1.2.4 my test are running fine again. Any clue why? "RubyGem version error: rspec(1.1.11 not = 1.2.4) (Gem::LoadError)" doesn't look good to me :-\ Is anybody running the same versions or radiant and rspec? Cheers, Enrico ___ 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][FIXED] Using absolute urls
Welp Sean has pointed out that this has been fixed in edge Radiant and all appears hunky-dory. The change is a one-liner is here - http://github.com/radiant/radiant/blob/master/app/models/standard_tags.rb#L980 Jeff Jeffrey Jones wrote: Yup, also getting this error 0.7.1. Bit of a showstopper as far as the comments extension goes. A - vaguely works- workaround is to take the user back to the page the comment was posted from. They won't see their comment or get any hint that it is awaiting approval but at least the site doesn't explode. def create comment = @page.comments.build(params[:comment]) comment.request = request comment.save! ResponseCache.instance.clear CommentMailer.deliver_comment_notification(comment) if Radiant::Config['comments.notification'] == "true" flash[:selected_comment] = comment.id redirect_to "#...@page.url}#comment-#{comment.id}" <--- Doesn't help if they fail validation though. Jeff Victor Elsendoorn wrote: Thanks Simon, for your reply. However this doesn't solve the problem. The error remains: The error occurred while evaluating nil.relative_url_root. and by the way the radiant version I'm using is indeed 0.7.1 Other ideas? Thanks in advance. On Apr 2, 2009, at 5:24 PM, Simon Josi wrote: I'm still using 0.6.9, I don't know if this issue is fixed for 0.7.x. I've fixed this in my fork of the comments extensions: http://github.com/turingmachine/radiant-comments/commit/c5efa910e5c83ebd7402a7c263064c6f28741bd1 /simon On Thu, 2 Apr 2009 17:01:27 +0200 Victor Elsendoorn wrote: Dear list, I found out having trouble with the comments extension in combination with the usages of a navigation snippet based on using the tag. It seems that it has something to do with the fact that the tag is producing relative url's rather than absolute url's. Can someone tell me how to use absolute url's instead of the relative ones? By the way, the error produced by the comments controller: not expecting nil_relative_url_for Hope someone can help me out here. Regards, Victor ___ 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] Using absolute urls
Yup, also getting this error 0.7.1. Bit of a showstopper as far as the comments extension goes. A - vaguely works- workaround is to take the user back to the page the comment was posted from. They won't see their comment or get any hint that it is awaiting approval but at least the site doesn't explode. def create comment = @page.comments.build(params[:comment]) comment.request = request comment.save! ResponseCache.instance.clear CommentMailer.deliver_comment_notification(comment) if Radiant::Config['comments.notification'] == "true" flash[:selected_comment] = comment.id redirect_to "#...@page.url}#comment-#{comment.id}" <--- Doesn't help if they fail validation though. Jeff Victor Elsendoorn wrote: Thanks Simon, for your reply. However this doesn't solve the problem. The error remains: The error occurred while evaluating nil.relative_url_root. and by the way the radiant version I'm using is indeed 0.7.1 Other ideas? Thanks in advance. On Apr 2, 2009, at 5:24 PM, Simon Josi wrote: I'm still using 0.6.9, I don't know if this issue is fixed for 0.7.x. I've fixed this in my fork of the comments extensions: http://github.com/turingmachine/radiant-comments/commit/c5efa910e5c83ebd7402a7c263064c6f28741bd1 /simon On Thu, 2 Apr 2009 17:01:27 +0200 Victor Elsendoorn wrote: Dear list, I found out having trouble with the comments extension in combination with the usages of a navigation snippet based on using the tag. It seems that it has something to do with the fact that the tag is producing relative url's rather than absolute url's. Can someone tell me how to use absolute url's instead of the relative ones? By the way, the error produced by the comments controller: not expecting nil_relative_url_for Hope someone can help me out here. Regards, Victor ___ 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] Anyone know if these extensions have been updated for 0.7?
Hoi all Comments extension definitely works. i am using it on a 0.7.1 site. For the others, check out their github repos. The commit comments usually give a big clue. Jeff N. Turnage wrote: I would like to upgrade a project to 0.71 and I cannot find any info that the following extensions are ready for the upgrade: comments search share_layouts Does anybody know if these extensions are ready for the change? 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
[Radiant] Radiant Gallery Extension image Import failure.
Hoi all, I am trying to get pilu's radiant gallery (git edge )extension working on my Radiant(0.7.1) install but the import feature is failing. I have ImageMagick installed and the RMagick gem installed and am trying to import a directory of jpg images. The problem appears to be in the gallery_item.rb file in the proportional_resize method. ( http://github.com/pilu/radiant-gallery/blob/7bc3f859ee1b43e69a8e6ec7d983d81a27bf6858/app/models/gallery_item.rb#L113 ) Basically the width and height variables used in this method are 0 which results in a pic_ratio of NaN. I have no idea where these two variables are supposed to be set. Any help would be much appreciated. Cheers Jeff Here is the relevant bit of the error stack trace (With the width and height and picture ratio output using logger.info). Note that all the line numbers are line numbers are out slightly because of the logger line. : Processing GalleryImportingsController#import (for 124.110.167.147 at 2009-03-14 18:43:29) [PUT] Session ID: Parameters: {"gallery_id"=>"3", "action"=>"import", "authenticity_token"=>"3e98ee4fdaaf1f03eabd10fdd68b4d287022eedb", "_method"=>"put", "id"=>"1", "controller"=>"gallery_importings"} Width: 0.0, Height: 0.0 Picture Ratio: NaN TypeError (nil can't be coerced into Float): /vendor/extensions/gallery/app/models/gallery_item.rb:118:in `/' /vendor/extensions/gallery/app/models/gallery_item.rb:118:in `proportional_resize' /vendor/extensions/gallery/app/models/gallery_item.rb:47:in `thumb' /vendor/extensions/gallery/app/models/gallery_item.rb:84:in `generate_default_thumbnails' /vendor/extensions/gallery/app/models/gallery_item.rb:80:in `each' /vendor/extensions/gallery/app/models/gallery_item.rb:80:in `generate_default_thumbnails' /vendor/extensions/gallery/app/models/gallery_item.rb:37 ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
[Radiant] HTML4 Love
Ahoihoi all. Having a site that is written in HTML 4.01 strict I am coming across numerous problems in core and in various extensions that are hard-coded to output self closing tags a la XHTML, etc etc. Now it is relatively easy enough to dive into the source code and remove the slash but I was wondering if, as a community, we could decide upon a certain standard Radiant configuration option that could be referenced by all the tag generating code in core andwould be honoured in the various extensions. Heck, I wouldn't even mind going through the extensions and doing the drudge work involved (It would also be nice if everyone could agree on a certain way of how the code should be written, should be a relatively simple matter, if statement, text variable, constant, whatever). cheers Jeff ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
[Radiant] Radiant Gallery Extension.
Hoi all Anyone successfully using the radiant gallery extension with 0.7.1? If so whose github repository are you pulling from? Cheers Jeff ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
[Radiant] Re: Stop radius tags being parsed.
Hi all Is there a quick and simple way to stop radius tags being parsed and converted? I want to include some radius code in a code sample using the recent coderay extension but cannot figure out a way to stop the tags being parsed and converted. Tried using < for the brackets but they weren't converted to <> in the browser. Here is an example chunk of code. Cheers Jeff ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
[Radiant] [ANN] Google maps Extension 1.0
Howdy all, The Radiant google_maps extension is now good to go. The the basics have been finished. You can create a Google Map. Add Markers and add content to a single info window using your favourite filter and Radius tags. - What? An extension that allows you to create, modify and embed google maps into your Radiant site. - Where? It has been added to the extension registry here: http://ext.radiantcms.org/extensions/98-google-maps - Thanks! Sean Cribbs for putting up with incessant questions on IRC. If you have any questions / problems / issues then fire away, it has been pretty well tested so there shouldn't be anything major. Cheers Jeff ___ 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 Sites with seperate users
There is an extension for the first part, running sites separately: http://ext.radiantcms.org/extensions/3-multi-site Not sure on its compatibility with radiant 0.7 nor running two separate sites while sharing content. Jeff Mr Magpie wrote: I've decided to develop my next CMS type site in Radiant, and hopefully make my CMS of choice, mainly because its simple, flexible and in Ruby. What I would really like to do is setup a large machine running Radiant for simple brochure type sites for many clients. Each client would get their own radiant login for their site, and each site would have its own domain, layouts, snippets etc without one client affecting the other. In one case so far, I would like to run multiple sites for a single user, sharing content. I was hoping to run this with (1st choice) JRuby or (2nd choice) Passenger for efficiency and maintainability. I should then have minimal maintenance, setup and hosting costs per site and be able to make some cash ;^). I'm most concerned about Radiant's ability to keep these clients seperate a) assuming they are non-technical, I don't want them confused by seeing each others content b) where some malicious hacker gets a login to Radiant. Any thoughts ? Is this possible now ? Anyone else wanting to achieve this ? ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Templates extension and the schema
This has been happening to me while I have been making my extension, It worked once... after that the schema didn't get updated. I am also getting errors regarding the unique config key on MySQL but again, it worked...once. So far I have been unable to replicate both situations, I am still trying to figure out what is goig on.. Jeff N. Turnage wrote: Jim Gay wrote: Radiant should update the schema.rb file But it doesn't. This is the content of my schema.rb file: ... # This file is auto-generated from the current state of the database. Instead of editing this file, # please use the migrations feature of ActiveRecord to incrementally modify your database, and # then regenerate this schema definition. # # Note that this schema.rb definition is the authoritative source for your database schema. If you need # to create the application database on another system, you should be using db:schema:load, not running # all the migrations from scratch. The latter is a flawed and unsustainable approach (the more migrations # you'll amass, the slower it'll run and the greater likelihood for issues). # # It's strongly recommended to check this file into your version control system. ActiveRecord::Schema.define(:version => 0) do end ... The file is auto-generated, so how do I get a look at the current state of affairs? ~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
[Radiant] Adding extension db migrations to the spec:extensions task db:loading process.
Hi all, I am currently adding rspec tests to my extension (Better late than never eh) but am having trouble with the rake spec:extensions task. The reason being that my extension cannot find the tables because they haven't been created by the rake spec:extensions task because it uses: ** Execute db:schema:load and the schema.rb file isn't updated by radiant when the extensions:migrate rake task is run (From what I can tell). Manual work around is to just copy the create table statements into schema.rb Am I barking up the wrong tree or otherwise missing something? Is there a way to get the migrations run by rspec automatically? Or do we need to modify the extension_migrator to update schema.rb or have some other method to tell rspec more tables exist. Cheers Jeff ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
[Radiant] [ANN] Google maps Extension 0.1
Hello all, It is with a mixed feeling of pride and trepidation that I announce my first extension in the form of the "Google Map Extension" for a first look by any interested parties. As the name implies it allows you to create a google map and then Gmarkers inside it with the infoWindow using filters and radius tags. WARNING - This is not intended to for production use yet as the README makes abundantly clear ;) To summarize. No code re-factoring The Biggie: No automated testing done (Yes yes I know, very un-railsy. I hang my head in shame) I am mainly putting this out to get feedback on the UI / features people would like to see. Currently I am thinking along the lines of: Gmarker icon / infoWindow size customisation. Other objects like Gpolylines and interactive placement via a map will come much later (After I have cleaned up and tested the code done so far plus any easy feature additions). The github URL is: http://github.com/rurounijones/radiant-google-maps-extension/tree/master Cheers Jeff ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Bad Gateway Error
Sounds like the radiant app is running on mongrel and apache is proxying to it. It also sounds like the mongrel process (which Radiant uses) has stopped running. You will have to check that the mongrel process is running by SSHing into your account and seeing if it is running using ps. If it isn't you will have to restart it, the port number you will need is in the config file for the domain probably. Jeff Peter Soutter wrote: Hi, I'm hoping that someone might be able to help me. I run a website www.goodtravelcompany.com, which was created using radiant. For someone unexplained reason the website is down and the following error message is being displayed: Bad Gateway The proxy server received an invalid response from an upstream server. Apache/2.0.54 Server at www.goodtravelcompany.com Port 80 I have called my hosting company media temple and they say that the problem is in the domain, however, I have made no changes to the website recently. Any idea how I can fix it? Thanks Peter ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Extension UI - Opinions requested.
Nothing really useful, I suppose it boils down to. Parents (Level 1) have children (Level 2), there are only two levels, should those children (level 2) be displayed in the same manner as children of a page on the main pages tab? Or should the children only be displayed in the "show" action of the parent. I am thinking I should mimic the core radiant "pages" page but I am not sure how tricky that will be Jeff Sean Cribbs wrote: Have screenshots? That might help us get a better picture of what you mean. Sean Jeffrey Jones wrote: Howdy all. I am currently making an extension to embed Google Maps into radiant. It is coming along nicely but now I have a question about the UI (Never my strong point) and what you lot would think is better. * Currently the index page lists all the Google Maps currently setup (Name, Desc, Lat/Long, Zoom). * The user will be able to add objects to a google map (Gmarkers etc.) Option 1. The index page lists all the google maps AND their children on one page in the same manner as the "pages" page, each map will have a collapsible tree with all the children on it, "Add children" button and whatnot. Option 2. The index page ONLY shows the maps and children will only be displayed on the Maps "show" action. I am of split opinion about which would be better but as I am not a radiant-guru the easier option is probably my preferable one. Any opinions on the matter would be much appreciated. Cheers Jeff ___ 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] Extension UI - Opinions requested.
Howdy all. I am currently making an extension to embed Google Maps into radiant. It is coming along nicely but now I have a question about the UI (Never my strong point) and what you lot would think is better. * Currently the index page lists all the Google Maps currently setup (Name, Desc, Lat/Long, Zoom). * The user will be able to add objects to a google map (Gmarkers etc.) Option 1. The index page lists all the google maps AND their children on one page in the same manner as the "pages" page, each map will have a collapsible tree with all the children on it, "Add children" button and whatnot. Option 2. The index page ONLY shows the maps and children will only be displayed on the Maps "show" action. I am of split opinion about which would be better but as I am not a radiant-guru the easier option is probably my preferable one. Any opinions on the matter would be much appreciated. Cheers Jeff ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
[Radiant] Paperclipped with more complex image manipulation
Howdy all. Is it possible for Paperclipped to do more complicated image manipulation? For example I want to create (using the ImageMagick command line arguments) nav=110x108! AND nav_inactive= 110x108! -fill black -colorize 50% Has anyone tried to do this? I tried putting all that in quotes nav_inactive='110x108! -fill black -colorize 50%' but that didn't seem to do the trick Cheers Jeff ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
[Radiant] Coding an extension...help with model.
Howdy all. I am creating an extension to make google maps in radiant easier but have come across an issue I cannot get my head around. I have my GoogleMap model. class GoogleMap < ActiveRecord::Base before_validation :create_point attr_accessor :latitude, :longitude private def create_point self.center = Point.from_x_y(self.latitude,self.longitude) end end Now, this center attribute is required on the DB level (I removed the validations to reduce points of possible failure). If I try and create a google map record in script/console it works fine. >> gmap = GoogleMap.new => #nil, created_at: nil, updated_at: nil> >> gmap.name = "Console Test" => "Console Test" >> gmap.description = "Created from the console" => "Created from the console" >> gmap.latitude = 5 => 5 >> gmap.longitude = 5 => 5 >> gmap.zoom = 5 => 5 >> gmap.save => true >> gmap => #the console", center: #@with_m=false, @x=5, @m=0.0, @with_z=false, @z=0.0, @srid=-1>, zoom: 5, created_at: "2009-01-19 16:16:15", updated_at: "2009-01-19 16:16:15"> >> gmap.center.x => 5 >> gmap.center.y => 5 However if I try it via the RadiantCMS interfact I just get kicked back to the create record page with no obvious information (and the fields blanked) and the create_point doesn't even get called if I debug it and stick a breakpoint in. No record gets saved and that is the end of that. The controller is the simple one from the extension example class Admin::MapsController < Admin::ResourceController model_class GoogleMap end Does anyone have any ideas? Cheers Jeff ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] adding tags to paperclipped?
Chiming in here. I have used Paperclipped with images, PDFs and Movies. However it relies on the browser knowing what MIME type it is uploading so make sure yer browser does that correctly. I can't remember what I had to do with FF in Linux to make it realise it was uploading a movie but I had to change a few things. Arj Jose Hales-Garcia wrote: On Jan 17, 2009, at 7:18 AM, Mohit Sindhwani wrote: * If the "folder" structure is to be carried forward to the display/ UI, it may be an idea to use PageAttachments and create child pages to represent the folders and attach files to that? Last time I tried it, PageAttachments and Paperclipped did not work together. Something do to with conflicting the database fields. I'm curious, Joe, are your assets images only? I have PDFs and Word Docs to maintain and couldn't get Paperclipped to work with them. Jose ... Jose Hales-Garcia UCLA Department of Statistics j...@stat.ucla.edu ___ 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: Re: Use sub folder url with share_layouts
You are missing the mysql development headers. Depending on your distribution they come in various packages. Something along the lines of mysql-devel or something like that Jeff Vincent Pérès wrote: Hello, I found new stuff linked (I hope) to my bug with share_layouts. In the rails page model, I did a debug in the console : def build_parts_from_hash!(content) content.each do |k,v| puts " part : " + k.to_s puts " part content : " + v (part(k) || parts.build(:name => k.to_s)).content = v end end And this is my result : part : my_part part content : I'm in the part part : body part content : WARNING: You're using the Ruby-based MySQL library that ships with Rails. This library is not suited for production. Please install the C-based MySQL library instead (gem install mysql). I'm using mysql with xampp, the problem is maybe coming from this configuration? I tried to install the mysql gem, but I have some mysql package missing : checking for mysql_query() in -lmysqlclient... yes checking for mysql_ssl_set()... yes checking for mysql.h... no checking for mysql/mysql.h... no *** extconf.rb failed *** I will try to install mysql from scratch. But is it normal, do you have any idea? Thanks, Vincent ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Phantom code when Radiant is deployed
Sounds like it could be a difference in RedCloth versions. Are they the same on both machines? Jeff Jon Hope wrote: I've just prepared a whole site using the Radiant CMS and I'm happy with how it looks etc but when I deploy it to my server there are little bits of code appearing that shouldn't be there! For example there are tags appearing in a list of images that are left floated, so they stagger downwards instead of being displayed in a line... And on one page the styled comments look great and on another the 'clearing' tags have been left out so they're mushed up into each other... yet both pages use the same snippet to render the comments and it CONTAINS the clearing tags!!! I tried emptying the cache but it's done nothing. The only thing I can think of is that these are throwbacks to earlier code, like when the images were text links with tags after them, that have somehow got resurrected when I deployed... I just can't figure it out though, anyone got ANY suggestions?! Thanks, Jon ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Shiny "ooo-aaah" AJAX navigation.
Interesting idea, I hadn't thought of that, AJAX isn't strictly necessary but he does want a navigation menu that updates without page refreshes. I shall have a look at this possibility, might be a big of a bugger because the template already uses overflows to control the looks but something I shall have to look into. thanks for the suggestions all. RJ Tim Gossett wrote: On Tue, Dec 23, 2008 at 9:04 AM, Jeffrey Jones wrote: Not my site and not my choice unfortunately. I already pointed these flaws out. The other problem is that the navigation menus makes use of honking great images which means that the navigation menu wouldn't fit in the page if it were displayed in full. Again I am aware of the drawbacks of such a set-up (I will put in a sitemap page if I can) but it isn't my site and the owner has definite ideas about how he wants it to look, it is very much form over function. Arj, Has your client insisted that AJAX be used? If so, then the client is likely just dropping a buzz word, or using the best fit he has in his vocabulary to describe the effect he wants. That same behavior can be achieved with client-side scripting. Loading a number of large images is fine, because they don't have to be displayed on page load. Put the full nav menu in the code of the page, and use CSS to hide the ones the user doesn't need to see. If the client absolutely has to have AJAX (even in spite of your recommendation), then the client should be willing to pay for the extra hours it will require for you write a Radiant extension explicitly for this particular implementation of AJAX. However, if the client is willing to put the latest Web 2.0 buzz words aside for a moment, you would be able to deliver the functionality he's looking for along with decent on-page performance in less time. Typically, I tell clients that I can do things good, fast, and cheap, and that they get to pick which two they want. In this case, best solution is actually faster and therefore cheaper. Hope that helps. -- Tim ___ 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] Shiny "ooo-aaah" AJAX navigation.
Hoi Tim, Not my site and not my choice unfortunately. I already pointed these flaws out. The other problem is that the navigation menus makes use of honking great images which means that the navigation menu wouldn't fit in the page if it were displayed in full. Again I am aware of the drawbacks of such a set-up (I will put in a sitemap page if I can) but it isn't my site and the owner has definite ideas about how he wants it to look, it is very much form over function. Cheers Arj Tim Gossett wrote: On Tue, Dec 23, 2008 at 4:20 AM, Jeffrey Jones wrote: Lets say I have a simple Radiant based site. Pages with sub-pages etc etc. All very simple. However the user wants the navigation menu to be scrollable using little buttons Like the following NAV1 - NAV2- NAV3- NAV4 <> Clicking the > button would change the nav to NAV5 - NAV6- NAV7- NAV8 <> and so on using AJAX to update the navigation menu. This navigation menu is going to be on the one layout this site will use so all the pages will have it without exception. Now, how can I do this? If you rely on AJAX to bring in parts of the navigation menu, then your site won't work for users without JavaScript enabled (read: Google won't be able to use the navigation menu). Also, you'll be creating superfluous requests to load a little bit of HTML, which is a big performance hit. Why not do this: Have your layout create a list with all of the navigation links that might otherwise be loaded by AJAX. (This will ensure that the site works for non-JS users). Use JS to hide all but the first four nav links when body.onLoad. Bind a function to your little buttons .onClick to hide those four and show the next four nav links. Your users won't have to wait for an HTTP request to complete before they can see the nav links they want, and your menu will be wicked-fast, leaving some headroom for sexy animations (slides, fades, etc.). No need to write an extension. -- Tim ___ 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] Shiny "ooo-aaah" AJAX navigation.
Howdy all. I am in a bit of a quandary about how to do this so would appreciated any advice. Lets say I have a simple Radiant based site. Pages with sub-pages etc etc. All very simple. However the user wants the navigation menu to be scrollable using little buttons Like the following NAV1 - NAV2- NAV3- NAV4 <> Clicking the > button would change the nav to NAV5 - NAV6- NAV7- NAV8 <> and so on using AJAX to update the navigation menu. This navigation menu is going to be on the one layout this site will use so all the pages will have it without exception. Now, how can I do this? Bearing in mind the following: 1. If I am on the page specified by NAV5 then the navigation menu should read NAV5 - NAV6- NAV7- NAV8 (Current page + 4 ) 2. The navigation menu replacement needs to be AJAX but the loading of the main pages doesn't HAVE to be (Although it can be if it makes things easier) My thoughts so far. Method Assign the button elements an onclick="" function in JavaScript that calls JavaScript Use a Custom JavaScript file to create all the AJAX requests to go to a custom controller Create a custom controller to handle AJAX requests and update the navigation bar. Custom controller uses the session to keep track of what should be displayed in the navigation menu. When a page is rendered ... well, this is where I get stuck. How can I make the navigation bar display the current page + 4 based using only the tags available in Radius. All this is a bit tricky to explain. I will try and get a site up so you can see the layout in question as it might make things easier. In the meantime if anyone has any ideas about this I would appreciate a second set of neurons looking at the issue. Cheers Arj ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
[Radiant] Radiant/Radius/Extensions + HTML 4.01
Hello all, At the moment it seems the Radiant ecosystem is setup to generate XHTML tags (paperclipped comes to mind). As I am going to make my site HTML 4.01 this presents something of a nuisance. I can easily alter the paperclipped code to output HTML but that is fixing a symptom and not addressing a core issue. Would it be possible to include a standard RadiantConfig option to specify the output format of tags? If a standardised config option was chosen then all extensions that output HTML/XHTML code could then check the option and output the correct tags for the given specification. Naturally it would default to the current XHTML code but it would offer a bit of flexibility. Note that I am talking only about the main site code. The admin system can whatever it likes. What do you guys think? RJ ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
[SOLVED] Re: [Radiant] Paperclipped + flash video files.
Finally figured out what it was. My version of Firefox (Firefox on Kubuntu linux) didn't know the video/x-flv mime-type so when it uploaded the file it was setting the content type as application/octet-stream. It appears paperclipped uses the browser mime-type to determine if the file is allowed to be uploaded or not (I assumed it checked the file). Adding the mime-type to Firefox solved the issue. On Kubuntu create a ~/.mime.types file with video/x-flvflv (The master mime-type file is /etc/mime.types) I do not know if this affects windows Firefox or how you would add the mime-type in windows. Cheers Jeff Jeffrey Jones wrote: Hoi all. Has anyone managed to upload flash video files using the paperclipped extension? I added video/x-flv to the allowed mime types but the FLVs are still getting rejected as not allowed. Thanks Jeff ___ 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] Paperclipped + flash video files.
Hoi all. Has anyone managed to upload flash video files using the paperclipped extension? I added video/x-flv to the allowed mime types but the FLVs are still getting rejected as not allowed. Thanks Jeff ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] slug inside url_matches [SOLVED]
Thank you all, ancestor_or_self works nicely. Jeff Sean Cribbs wrote: An alternative is or , which will do close to what you want. Sean Jeffrey Jones wrote: Hoi all, Does anyone know how I could get the following working? ignore_case="true"> style="display: none;" > Basically, if the page's slug is in the url somewhere I want the css style display to be none. I have tried with double and single quotes but this doesn't appear to be working. Using a hard-coded value instead works. I am assuming the isn't being translated to the actual slug value before being matched in the regexp. Thanks Jeff ___ 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] slug inside url_matches
Hoi all, Does anyone know how I could get the following working? ignore_case="true"> style="display: none;" > Basically, if the page's slug is in the url somewhere I want the css style display to be none. I have tried with double and single quotes but this doesn't appear to be working. Using a hard-coded value instead works. I am assuming the isn't being translated to the actual slug value before being matched in the regexp. Thanks Jeff ___ 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_status tag
Hi Sean. The scenario is that I want to list all children of a current page for a navigation menu and create links only if the page is, for example, published. If the page isn't published then I just want to output the name of the page. I am creating a new site for an organisation which has a old pokey site with a colossal number of pages and content. They want to be able to let existing users know if a page has been ported (working link) or not (Text but no link) but also let new users know that "Yes this page exists, it isn't ready yet but we are working on it" with a nice full navigation menu. Because the porting process will take a while if they only displayed published pages the site navigation menus would be very very small. (Under construction) Cheers Jeff Sean Cribbs wrote: Those changes have not been applied to the core. What would you use an for? Only published pages will be visible on the live site. Sean Jeffrey Jones wrote: Howdy all, I found a link on google regarding the addition of the tag. http://209.85.175.104/search?q=cache:0W0Pp72tSwkJ:dev.radiantcms.org/ticket/598+%3Cr:if_status+/%3E&hl=en&ct=clnk&cd=1 One of the comments asks for and tags to be added as well. It doesn't look like this was done since a second patch file wasn't attached. Am I incorrect here? I have tried the tag as described in that commend but am getting an invalid tag error. If I am correct, are there any plans on putting this in soon? Many thanks Jeff Jones ___ 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] if_status tag
Howdy all, I found a link on google regarding the addition of the tag. http://209.85.175.104/search?q=cache:0W0Pp72tSwkJ:dev.radiantcms.org/ticket/598+%3Cr:if_status+/%3E&hl=en&ct=clnk&cd=1 One of the comments asks for and tags to be added as well. It doesn't look like this was done since a second patch file wasn't attached. Am I incorrect here? I have tried the tag as described in that commend but am getting an invalid tag error. If I am correct, are there any plans on putting this in soon? Many thanks Jeff Jones ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
[Radiant] Snippet hierarchy?
Hi everybody Has anyone thought about the possibility creating a snippet hierarchy? On a site I am currently working on I will have a bunch of snippets which will probably have to be translated into different languages. It would be useful to be able to organise them on the site into a hierarchy. I see two ways of doing this Easier way: Still require each snippet to be uniquely named to make the /> unchanged. (i.e. "navigation_english" for an english navigation snippet) harder way: Allow snippets to share the same names and then make the tag name attribute reflect the category name and the snippet name (i.e. "english_navigation" for a navigation snippet in the english category.) In either case, in terms of the front-end, copy the tree hierarchy from the pages section. Back-end would require an extra column for parent_id and a type if we wanted to make a category separate from an actual snippet. I think this could probably be done in an extension but my coding skills are weak weak weak. Anyone tried to do something like this before? Regards Jeffrey Jones ___ 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: Error after upgrading to 0.6.9
Hi Mohit, Will this do? http://wiki.radiantcms.org/index_sitemap_column_headers_error Jeff Mohit Sindhwani wrote: Jeffrey Jones wrote: Many thanks Sean That did it, I thought shards was an integral part of radiant which is why I didn't think to remove it. Jeff I'm going to get a really bad name for this (regular readers know what to expect), but Jeff, is there any chance that I could urge you to put this note under the Troubleshooting section of the Summer Reboot documentation project about Radiant? You could describe the symptoms and the solution. An example of a troubleshooting page is at: http://wiki.radiantcms.org/Intermittent_Errors_with_SQLite_on_Windows and the part on the documentation where you'd need to start is: http://wiki.radiantcms.org/Summer_Reboot Cheers, Mohit. 8/18/2008 | 11:50 PM. ___ 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: Error after upgrading to 0.6.9
Many thanks Sean That did it, I thought shards was an integral part of radiant which is why I didn't think to remove it. Jeff Sean Cribbs wrote: Jeff, Do you have the 'shards' extension installed? If so, remove it and you should be fine. Sean Jeffrey Jones wrote: Hi all, I recently upgraded to 0.6.9 gem. Ran the migrations and update scripts. Everything works except the "page" admin page which displays the following: Pages `index_sitemap_column_headers' default partial not found! As this is a radiant error there is nothing in the logs that can help. I have been trying to figure this out for a while but it is beyond me so any help would be much appreciated. Jeff Jones ___ 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: Error after upgrading to 0.6.9
Hi all, I recently upgraded to 0.6.9 gem. Ran the migrations and update scripts. Everything works except the "page" admin page which displays the following: Pages `index_sitemap_column_headers' default partial not found! As this is a radiant error there is nothing in the logs that can help. I have been trying to figure this out for a while but it is beyond me so any help would be much appreciated. Jeff Jones ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant