Hello all,

I've been trying to upgrade my journal and incorporate the new features
(tags, comments, publishing, etc.) but I keep running into small problems.

1) The tags plugin creates odd links and uses weblog.link which doesn't
   work well if you're staging the blog locally first.
   A small patch to resolve this:

--------
--- lib/hobix/plugin/tags.rb    (revision 135)
+++ lib/hobix/plugin/tags.rb    (working copy)
@@ -38,7 +38,7 @@
         <ul>
         <% tags_list(weblog.storage.find).sort.each do |name, count| %>
           <li>
-            <a href="<%= weblog.link %>/tags/<%=name%>/index.html"><%= name
+            <a href="<%= weblog.expand_path( "/tags/#{ name }/" )
%>"><%= name
             %></a>:&nbsp;<%=count%>
           </li>
         <% end %>
--------

2) I get an error when comments are enabled:

   ## Page: /2005/06/index.html, updated Mon Jun 13 22:44:27 CEST 2005
   /usr/lib/ruby/1.8/hobix/comments.rb:64:in `entry_comment_form_erb':
     undefined local variable or method `entry_id' for 
#<Hobix::Out::Quick:0x302ab6b8> (NameError)

   To temporarily be able to investigate further, I've set entry_id to "foo"
   at the top of entry_comment_form_erb().
  
3) But then, I still haven't got comments working.  That is.. AFAIK
   I've got everything configured, but not template stuff appears in the
   resulting page(s).  I don't know which info I should give you to show
   what's wrong, actually.

Kind regards,

Paul

-- 
Student @ Eindhoven                         | email: [EMAIL PROTECTED]
University of Technology, The Netherlands   | JID: [EMAIL PROTECTED]
>>> Using the Power of Debian GNU/Linux <<< | GnuPG key ID: 0x50064181

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Hobix-is-the-way mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/hobix-is-the-way

Reply via email to