look out honey 'cause I'm using technology

HOWTO get Typo themes to work with Trunk

I wrote to the mailing list last week to inquire about what themes work with Typo trunk. After a response I found that a fix had already been posted out there in the Internetland. So, mad props and shout outs go to Piers Cawley for posting the solution to getting all the great themes from the Typo themes contest to work with Typo Trunk (most themes are br0k3d due to some basic changes in Typo’s API). Piers writes, ”If you’ve still got problems porting an old theme, it’s probably because your theme renders sidebars ‘wrong’. Check in your themes//layouts/default.rhtml and look for the line that looks like:

<%= render_component(:controller => ‘sidebars/sidebar’, :action=>'display_plugins') %>

and replace it with:

<%= render_sidebars %>

If that doesn’t fix things, his next solution is, ”The other big change in the way themes are rendered (and again, its’ sidebar related) is in the section of the layout. Here’s what the default theme header looks like nowadays:

<head>
<title><%=h page_title %></title>
<%= page_header %>
<%= stylesheet_link_tag “/stylesheets/theme/azure”, :media => ‘all’ %>
<%= stylesheet_link_tag “/stylesheets/user-styles”, :media => ‘all’ %>
<%= stylesheet_link_tag “/stylesheets/theme/print”, :media => ‘print’ %>
</head>“You should change yours to look similar (you pretty much must include that <%= page_header %> part
    

View Comments to “HOWTO get Typo themes to work with Trunk”

  1. [...] A while back, in order to get the tag functionality in Typo, I upgraded from the stable download to the trunk. Typo is in flagrant and ongoing violation of the “release early, release often” directive for software projects, but it’s been a nearly painless experience each time. Except for this last time. To get an update to the Typo sidebar plugin API, I ran svn update on the Typo on my local machine, tweaked a couple of things, and tested; then I ran svn update on the Typo on my remote machine, and… crash. The difference was the theme that I use on the production server, and I resorted to Google before fishing through the theme layouts for issues. Ironically, I found a quick answer on Phil Cryer’s blog and had things back to (what passes for) normal in a few minutes. [...]

Leave a Reply

blog comments powered by Disqus