Re: Theme overrides


#1

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.

Thanks.


#2

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.


#3

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

Kyle H.
removed_email_address@domain.invalid
www.kyleheon.com