Forum: Typo Re: Theme overrides

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
unknown (Guest)
on 2006-03-17 00:17
(Received via mailing list)
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.
Kevin B. (Guest)
on 2006-03-17 06:04
(Received via mailing list)
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.
Kyle H. (Guest)
on 2006-03-18 04:02
(Received via mailing list)
Thank you, I will explore creating my own sidebar component.

Kyle H.
removed_email_address@domain.invalid
www.kyleheon.com
This topic is locked and can not be replied to.