
Today I’d like to highlight the mephisto_article_image_fetchy plugin, from the twisted mind of courtenay. It scans the article body for any image tags, creates assets from any remote images, and replace the URLs in the body of the article. (see included image as an example, linked from here).
For any plugin developers, notice how this uses a module and #include_into to extend Article, and the little-known #body_doc method to grab an HTML::Document of the article body. I actually added #body_doc to the filtered_column plugin so that more plugins like this could be made without having to generate the document multiple times.

Ahhh … thanxs this will be very helpfull in populating my assets . i did change https to http thou …
xo
Pretty simple for something so slick. This would actually be great for workflows with users who kinda “get” what they’re doing HTML-wise, but start to balk when you ask them to understand how assets sit on web servers and what urls they need to use based on where something is uploaded. Nice work.
When i try to use this plugin, I receive this error:
script/../config/../vendor/plugins/mephisto_article_image_fetchy/init.rb:5:in `load_plugin’: undefined method `include_into’ for Rails::Initializer::ArticleImageFetchyMethods:Module (NoMethodError) from ./script/../config/../vendor/rails/railties/lib/initializer.rb:401:in `load_plugin’ from ./script/../config/../vendor/rails/activesupport/lib/active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings’ from ./script/../config/../vendor/rails/railties/lib/initializer.rb:401:in `load_plugin’ from ./script/../config/../vendor/rails/railties/lib/initializer.rb:185:in `load_plugins’ from ./script/../config/../vendor/rails/railties/lib/initializer.rb:185:in `each’ from ./script/../config/../vendor/rails/railties/lib/initializer.rb:185:in `load_plugins’ from ./script/../config/../vendor/rails/railties/lib/initializer.rb:105:in `process’ from ./script/../config/../vendor/rails/railties/lib/initializer.rb:43:in `send’ ... 27 levels… from ./script/../config/../vendor/rails/activesupport/lib/active_support/dependencies.rb:496:in `require’ from ./script/../config/../vendor/rails/railties/lib/commands/server.rb:39 from script/server:3:in `require’ from script/server:3
Are you using Rails 1.2? Now that it’s out, that’s the standard I’m going to stick with on Mephisto for awhile. No more edge stuff.
And, are you using Mephisto trunk? I should’ve mentioned that… the experimental plugin stuff is only in trunk, not 0.7.3.
Please continue this dialog in the Google Group.
Hi, just trying to get a feel for things using the demo. Unfortunately neither the “visit” or “log in” links are working for me. Will it be operational again soon?
I hope so. I emailed Cloves about it a few days ago.