[typo] Theme overrides

Kevin Ballard kevin at sb.org
Thu Mar 16 22:59:08 EST 2006

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2378 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/typo-list/attachments/20060316/5c9ac9a3/attachment.bin 

More information about the Typo-list mailing list