[typo] Theme overrides

Kyle Heon kheon at comcast.net
Fri Mar 17 20:57:36 EST 2006

Thank you, I will explore creating my own sidebar component.

Kyle Heon
kheon at comcast.net

-----Original Message-----
From: Kevin Ballard [mailto:kevin at sb.org] 
Sent: Thursday, March 16, 2006 10:59 PM
To: kheon at comcast.net
Cc: typo-list at rubyforge.org
Subject: Re: [typo] Theme overrides

Oh, you actually want to modify the sidebars, not change the theme. I think
that would require a bit of invasive code, changing lots of stuff in the
Typo internals. Perhaps instead of replacing all the old stuff you'd simply
like to add the metadata? You could do this by writing your own sidebar
component that uses the request_params hash parameter to determine what page
is being viewed, and display the metadata if you're viewing an individual
article but display nothing otherwise. This would also not be a theme change
but a main typo source change.

On Mar 16, 2006, at 2:14 PM, kheon at comcast.net wrote:

> Any thoughts on how I could accomplish this then? Being new to Ruby 
> and Rails I'm struggling to determine what my options are.
> Basically what I'm trying to do is swap out my right column depending 
> on where you are in the site. If you are on an article list page I 
> want the right column to have links to other categories, search, etc 
> but once you drill in to an article I want to have that all go away 
> and to display what is essentially meta data about the article (ie: 
> title, posted by, tags, categories, comments, trackbacks, etc).
> Is this something that I could do somehow with a controller action 
> that determine which view to return? I could then create partial views 
> that include the necessary logic.
> Does this make sense? How should I go about starting this?
> Is there another way? A better way? I'm open to options. Trying to 
> learn here so I apologize for all the questions.

Kevin Ballard
kevin at sb.org

More information about the Typo-list mailing list