Typo Recent Posts sidebar plugin

Typo blog engineI’ve just released a “Recent Posts” sidebar plugin for Typo, the Ruby on Rails blog engine that powers this blog. It displays the last posts title and a snippet of the post body.

You can configure the title of the plugin, the number of posts and the excerpt’s length in the sidebar admin.

Download and install

Download

Download Typo “Recent Posts” plugin.

Requirements

Typo V4.0 and above (trunk works) with plugins in /vendor/plugins.

Install

Just unpack the archive into the /vendor/plugins folder of your Typo install. Restart your Typo instance. Go to the admin / sidebar to configure it. You’re done.

Licence

The plugin is released under the MIT Licence.

Publié le 30 décembre 2006 à 14h40 Publié sous et Labels blogging, download, ruby, web, rubyonrails, plugin

À propos

Frédéric de Villamil

Je m'appelle Frédéric de Villamil, et quand je ne déploie pas ma mauvaise humeur et ma mauvaise foi sur le Web, je suis un super héros chargé de sauver le monde. Vous pouvez me suivre sur Twitter.

  1. jorge le 05 mars 2007 à 23h19

    Hi there when I trow it to vendor/plugins I get this when trying to start the server (this is in a fresh/clean 4.0.3 copy ) jorge@jorge-laptop:~/Desktop/typo-4.0.3$ ruby script/server => Booting WEBrick… /usr/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/base.rb:1129:in method_missing': undefined methoddescription’ for RecentPostsSidebar:Class (NoMethodError)

        from ./script/../config/../vendor/plugins/recentposts_sidebar/lib/recentposts_sidebar.rb:2
        from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
        from /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in `require'
        from script/../config/../vendor/plugins/recentposts_sidebar/init.rb:2:in `load_plugin'
        from /usr/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/initializer.rb:348:in `load_plugin'
        from /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings'
        from /usr/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/initializer.rb:348:in `load_plugin'
        from /usr/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/initializer.rb:158:in `load_plugins'
         ... 9 levels...
        from /usr/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/commands/server.rb:30
        from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
        from /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in `require'
        from script/server:3
    
  2. Frédéric de Villamil le 06 mars 2007 à 16h07

    I see, I guess it’s because Tyo plugins API has been changed between 4.03 and 4.1.

    I’m sorry, but as I’m going to release the 4.1 version in the next days, I won’t fix this now.

  3. ryan le 14 mai 2008 à 08h02

    Hello, I just wanted to let you know that I couldn’t get recentpostssidebar plugin to work until I changed line 9 of lib/recentpostssidebar.rb to:

    @recentposts = Article.findpublished(:all, :order => ‘published_at DESC’, :limit => count)

    It was giving me an error before on “boolean = integer” that the function was invalid when looking for published = 1.

Réagir à Typo Recent Posts sidebar plugin

Afin de maintenir le niveau global de ce site, les commentaires font l'objet d'une politique de modération qualitative basée sur des critères non écrits et totalement subjectifs, donc injustes.

Les commentaires écrits en langage SMS, inutiles, déplacés, injurieux ou relevant du spam seront systématiquement supprimés sans avertissement préalable.

Les trackbacks sont fermés pour cause de spam.