[Radiant] Stripping HTML from ?
Hi All, I noticed that if I use HTML elements in a title, they’re escaped and added to the article’s page title ( element). I can’t seem to find any mention of an attribute to strip HTML from a Radiant tag, or a regex plugin that I could use to do this. I’m sure I’m missing something obvious, so does anyone have any suggestions? Thanks in advance! peace - oli
[Radiant] Duplicate 'slug' and 'breadcrumb' fields after adding page_fields extension
Hi All, After adding the page fields extension a second set of slug and breadcrumb fields are appearing on the edit page screen. I wouldn't mind except they aren't getting auto-populated so validation is failing. Any ideas what is causing this? What there something I should have configuring prior to or aafter install? Thanks, Todd
Re: [Radiant] Kramdown vs. markdown filter
On Thu, Dec 16, 2010 at 6:42 PM, Wes Gamble wrote: > Thanks John, > > I installed the kramdown filter, took a page and switched it from "markdown" > to "kramdown" and got this error: apparently i guessed wrong. disable markdown and see if it works.
Re: [Radiant] Kramdown vs. markdown filter
Thanks John, I installed the kramdown filter, took a page and switched it from "markdown" to "kramdown" and got this error: undefined method `parse_infos' for # with the following stack trace: |/Users/weyus/Documents/workspace/koached-content/vendor/radiant/vendor/extensions/markdown_filter/vendor/kramdown/lib/kramdown/parser/kramdown.rb:90:in `initialize' /Users/weyus/Documents/workspace/koached-content/vendor/radiant/vendor/extensions/markdown_filter/vendor/kramdown/lib/kramdown/parser/base.rb:47:in `new' /Users/weyus/Documents/workspace/koached-content/vendor/radiant/vendor/extensions/markdown_filter/vendor/kramdown/lib/kramdown/parser/base.rb:47:in `parse' /Users/weyus/Documents/workspace/koached-content/vendor/radiant/vendor/extensions/kramdown_filter/vendor/gems/kramdown-0.12.0/lib/kramdown/document.rb:89:in `initialize' /Users/weyus/Documents/workspace/koached-content/vendor/radiant/vendor/extensions/kramdown_filter/lib/kramdown_filter.rb:47:in `new' /Users/weyus/Documents/workspace/koached-content/vendor/radiant/vendor/extensions/kramdown_filter/lib/kramdown_filter.rb:47:in `filter' /Users/weyus/Documents/workspace/koached-content/vendor/radiant/app/models/page.rb:308:in `parse_object' /Users/weyus/Documents/workspace/koached-content/vendor/radiant/app/models/page.rb:143:in `render_snippet' /Users/weyus/Documents/workspace/koached-content/vendor/radiant/app/models/standard_tags.rb:549:in `tag:content' | Is that anything obvious? Thanks, Wes On 12/16/10 6:22 PM, john muhl wrote: i can't remember for sure but i think you can have both installed and kramdown will appear as a distinct filter alongside markdown in the menu. On Thu, Dec 16, 2010 at 4:24 PM, Wes Gamble wrote: Radiant 0.9.1 I see that the kramdown_filter extension just got updated to the kramdown 0.12 gem. If I want to use the kramdown_filter, should I remove the existing markdown_filter extension? Thanks, Wes
Re: [Radiant] Kramdown vs. markdown filter
i can't remember for sure but i think you can have both installed and kramdown will appear as a distinct filter alongside markdown in the menu. On Thu, Dec 16, 2010 at 4:24 PM, Wes Gamble wrote: > Radiant 0.9.1 > > I see that the kramdown_filter extension just got updated to the kramdown > 0.12 gem. > > If I want to use the kramdown_filter, should I remove the existing > markdown_filter extension? > > Thanks, > Wes >
[Radiant] Kramdown vs. markdown filter
Radiant 0.9.1 I see that the kramdown_filter extension just got updated to the kramdown 0.12 gem. If I want to use the kramdown_filter, should I remove the existing markdown_filter extension? Thanks, Wes
Re: [Radiant] Re: deploying radiant 0.9.1 with capistrano
On Dec 16, 2010, at 3:58 AM, Fima Leshinsky wrote: > I'm curious why none of your deploy.rb scripts contained any reference to the > database config file. How are you guys deploying migrations? That's a general concern for all Rails apps, not specific to Radiant. AFAIK common practice is still to keep database.yml out of source control and maintain a separate copy on each staging or production server. We symlink ours from the shared path to the current checkout on each deploy: namespace :deploy do desc "Symlink necessary files into current dir" task :symlink_configs do run "ln -sf #{shared_path}/database.yml #{release_path}/config/database.yml" # copy any other sensitive configs or initializers you might need -- S3 keys, etc. end after 'deploy:update_code', 'deploy:symlink_configs' end How you get database.yml into your shared path is another matter. The blog you linked to has a recipe for that as well.
Re: [Radiant] Adding-Custom-Radius-Tags
On Dec 16, 2010, at 3:17 AM, rcz wrote: > no such file to load -- spec/rake/spectask What version of RSpec do you have installed? "spec/rakespectask" is the include for RSpec 1. If you're on RSpec 2, try "rspec/core/rake_task".
Re: [Radiant] Re: deploying radiant 0.9.1 with capistrano
Thanks for all the helpful posts. So I've got capistrano deploying my github-hosted application to my staging server. Works great! I'm not using bundler yet as I'm not sure of the benefits there. One of the problems I'm running into is deploying migrations (capistrano complains that it's not able to find /config/database.yml in the current release directory). I've found a couple of blog posts describing solutions to the issue e.g. http://www.simonecarletti.com/blog/2009/06/capistrano-and-database-yml/ I'm curious why none of your deploy.rb scripts contained any reference to the database config file. How are you guys deploying migrations?
[Radiant] Adding-Custom-Radius-Tags
I'm trying to write my own extension. I've followed this article https://github.com/radiant/radiant/wiki/Adding-Custom-Radius-Tags. I've written first spec files custom_tags_spec.rb. Now whenever I call rake spec I get this error (in F:/Work/Rails/Radiant/Blogg/vendor/extensions/custom_tags) rake aborted! no such file to load -- spec/rake/spectask F:/Work/Ruby187/p302/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb: 2383:in `raw_load_rakefile' (See full trace by running task with --trace) What I'm doing wrong? plz help. Rspec gem is installed.