Introducing the Studio Theme Pack

Comments

Anonymous writes:

Excellent article. I just downloaded the them to play around with it. I do look forward to additional information and the screencast around this particular theme.

dvessel writes:

Nice work. It's interesting to see how others approach the theming layer in a systematic way. I've always strived for this and often failed. My latest I believe is a lot more solid and I solved most of the sub-theming inheritance problems by tapping into the global $theme and $base_themes variable. Pull them from a custom function, merge into the proper order and call it from many places where each layer needs to know the right cascading order. This can be done to include your preprocess files for sub-themes.

Al Steffen writes:

Thanks for the tip on that. I will have to play around with that for one of the next versions. Getting the preprocess file system to be inherited by the subthemes would be near the top of the list of the things I want to get functioning.

sun writes:

Matt Tucker writes:

Nice link sun. Although I find that discussion interesting, I feel that the process in which .inc files are included in the method described in that issue is not structured enough. The reason we implemented the inclusion of "preprocess files" the way that we did is that it is extremely structured. A single preprocess file for a single template file, it just seems logical. It is easy to find where the preprocess stuff is, and it is easier to add and remove files than it is to search through an un-structured, un-standarized method. While in no way, is what we have done perfect, it strives towards consistency and organization within a theme. Themes are becoming more and more complex and with that, we need organization and consistency.

Jacine writes:

I've personally been hating the mess that D6 themes can become. Even though the new D6 features for theming are great, the lack of any real structure and massive increase in tpl files has been disappointing. I was silently wishing I could go back to Drupal 5 for a while, because IMO, having all the overrides in template.php was better than a mess of files in the theme just thrown in there.

So... I really love this. You guys have done an great job here. It's very logical to me, and I like the structure.

I like the preprocess inc files and the separation of custom function and overrides. I'm sure it really makes remembering what you did in a given theme months later a piece of cake, and also lets someone else come in and easily see what was done, which is key. I hardly have to look in the files to know what's going on, and that is very nice.

Thanks for sharing this with the community!

Jim writes:

peach - ADT drupal themes writes:

I'm very impressed.

I've been playing with systems that make complex themes more structured but you guys seem to be much better at it.
Also, I never liked the structure of zen subthemes, it still had too much code mixed together, but I love how you took a separation of functionality so far as to separate preprocess, functions and template.php from eachother, as well as separating custom functions from overrides.

To some users this may seem like making the theme much more complicated than it needs to be, but this really is more useful for very complex themes.
I think I'm going to adopt your theme as a basetheme, and end the days of 2000+ lines of template.php :p

By the way you left a dpl($vars) in /studio/canvas/preprocess/preprocess-comment.inc.

Al Steffen writes:

We are glad you all like the structure. The fact I could place .tpl files inside of subfolders was the one thing I was most excited about when I started making the move to D6. I then decided to take things to the next logical conclusion with the preprocess files.

Even if people do not use the theme directly, I hope they can at least use it for an example of what can be done.

Also, thank you for the bug report and the issue cue post. It is much appreciated. There will be a fix in 1.1 when it comes out later today.