[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Hobix: Modifying sidebar

ptkwt

12/1/2004 7:32:00 AM

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

2 Answers

why the lucky stiff

12/2/2004 8:03:00 AM

0

Phil Tomson wrote:
> 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:sj@example.org">Steve Jux</a></li>
<li><a href="mailto:ct@example.org">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/0...
+ Using Quick-Summary and Quick-Archive
http://rubyforge.org/pipermail/hobix-is-the-way/2004-September/0...

>
> 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



ptkwt

12/2/2004 5:16:00 PM

0

In article <41AECBCF.4000609@whytheluckystiff.net>,
why the lucky stiff <ruby-talk@whytheluckystiff.net> wrote:
>Phil Tomson wrote:
>> 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:sj@example.org">Steve Jux</a></li>
> <li><a href="mailto:ct@example.org">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/0...
>+ Using Quick-Summary and Quick-Archive
>http://rubyforge.org/pipermail/hobix-is-the-way/2004-September/0...
>

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.

>>
>> 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.
>

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