Hobix: Modifying sidebar

P

Phil Tomson

Sorry for posting a Hobix question here, but the Hobix email list doesn't
seem to be working...

I'm trying to modify the sidebar of my hobix blog. I want to add a
'contacts' section to the sidebar.

From reading through some of the archives it seems like I should add an
index.html.quick file to my skel directory which contains:

sidebar_list: [sidebar_archive, sidebar_links, sidebar_contacts,
sidebar_syndicate, sidebar_hobix]

Where 'sidebar_contacts' is a new entry.

When I do a 'hobix regen blogName' I get:

/usr/local/lib/ruby/site_ruby/1.8/hobix/out/quick.rb:79:in `method':
undefined method `sidebar_contact_erb' for class `Hobix::Out::Quick'
(NameError)
from /usr/local/lib/ruby/site_ruby/1.8/hobix/out/quick.rb:79:in
`make'
from /usr/local/lib/ruby/site_ruby/1.8/hobix/out/quick.rb:88:in
`make'
from /usr/local/lib/ruby/site_ruby/1.8/hobix/out/quick.rb:87:in
`collect'
from /usr/local/lib/ruby/site_ruby/1.8/hobix/out/quick.rb:87:in
`make'
from /usr/local/lib/ruby/site_ruby/1.8/hobix/out/quick.rb:82:in
`make'
from /usr/local/lib/ruby/site_ruby/1.8/hobix/out/quick.rb:81:in
`gsub'
from /usr/local/lib/ruby/site_ruby/1.8/hobix/out/quick.rb:81:in
`make'
from /usr/local/lib/ruby/site_ruby/1.8/hobix/out/quick.rb:82:in
`make'
... 15 levels...
from /usr/local/lib/ruby/site_ruby/1.8/hobix/weblog.rb:365:in
`regenerate'
from
/usr/local/lib/ruby/site_ruby/1.8/hobix/commandline.rb:232:in
`regen_action'
from /usr/local/bin/hobix:64:in `call'
from /usr/local/bin/hobix:64


This seems to correspond to the added sidebar item (contacts). What am I
missing?

Phil
 
W

why the lucky stiff

Phil said:
I'm trying to modify the sidebar of my hobix blog. I want to add a
'contacts' section to the sidebar.

From reading through some of the archives it seems like I should add an
index.html.quick file to my skel directory which contains:

sidebar_list: [sidebar_archive, sidebar_links, sidebar_contacts,
sidebar_syndicate, sidebar_hobix]

Where 'sidebar_contacts' is a new entry.

What do you mean exactly by 'entry'? The 'sidebar_contacts' is, yes, a
new entry in the Quick Template YAML file 'index.html.quick', but, no,
not a new blog entry.

Try this:

sidebar_list: [sidebar_archive, sidebar_links, sidebar_contacts,
sidebar_syndicate, sidebar_hobix]
sidebar_contacts: |
<div class="sidebarBox">
<h2 class="sidebarTitle">Contacts</h2>
<ul>
<li><a href="mailto:[email protected]">Steve Jux</a></li>
<li><a href="mailto:[email protected]">Carl Thin</a></li>
</ul>
</div>

For the full details on Quick templates, try these two howtos:

+ Using Quick Templates
http://rubyforge.org/pipermail/hobix-is-the-way/2004-September/000003.html
+ Using Quick-Summary and Quick-Archive
http://rubyforge.org/pipermail/hobix-is-the-way/2004-September/000008.html
When I do a 'hobix regen blogName' I get:

/usr/local/lib/ruby/site_ruby/1.8/hobix/out/quick.rb:79:in `method':
undefined method `sidebar_contact_erb' for class `Hobix::Out::Quick'
(NameError)

I will remedy this tomorrow. Heil.

_why
 
P

Phil Tomson

Phil said:
I'm trying to modify the sidebar of my hobix blog. I want to add a
'contacts' section to the sidebar.

From reading through some of the archives it seems like I should add an
index.html.quick file to my skel directory which contains:

sidebar_list: [sidebar_archive, sidebar_links, sidebar_contacts,
sidebar_syndicate, sidebar_hobix]

Where 'sidebar_contacts' is a new entry.

What do you mean exactly by 'entry'? The 'sidebar_contacts' is, yes, a
new entry in the Quick Template YAML file 'index.html.quick', but, no,
not a new blog entry.

Yep. Sorry for the ambiguity. I mean new entry in the list.
Try this:

sidebar_list: [sidebar_archive, sidebar_links, sidebar_contacts,
sidebar_syndicate, sidebar_hobix]
sidebar_contacts: |
<div class="sidebarBox">
<h2 class="sidebarTitle">Contacts</h2>
<ul>
<li><a href="mailto:[email protected]">Steve Jux</a></li>
<li><a href="mailto:[email protected]">Carl Thin</a></li>
</ul>
</div>

This worked! Thanks.

For the full details on Quick templates, try these two howtos:

+ Using Quick Templates
http://rubyforge.org/pipermail/hobix-is-the-way/2004-September/000003.html
+ Using Quick-Summary and Quick-Archive
http://rubyforge.org/pipermail/hobix-is-the-way/2004-September/000008.html

I looked at those prior to posting. I have to say I found them a bit
confusing... do I use yaml or do I use erb? Apparently I could use
either or both.
I will remedy this tomorrow. Heil.

Thanks, why. Out of the box, Hobix is very nice. I've got it set up so
that whenever I send email to a certain address with a certain subject it
gets posted (along with attached photos) to my hobix trip-blog
automatically.

Phil
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,575
Members
45,054
Latest member
LucyCarper

Latest Threads

Top