Theming

Hi,

How about Theming options for Drupal Commons? I tried to change the theme to a Framework subtheme and it prompt me a fatal error "Cannot unset string offsets in includes\form.inc".

Regards,

Igor.

Comments

wolfflow

This may give you some more

This may give you some more insight to theming --> http://commons.acquia.com/wiki/acquiacommons-theme

JB Ingold

There is very little in this section

Just what not to do  in panel

jalneal

Read up on Fusion

If you were trying to create a new subtheme off Acquia commons, that is probably your problem - Acquia Commons is a subtheme of Fusion, and you can't have a subtheme of a subtheme (although I hear it's different in D7.)

Best practice is to add your own custom CSS and TPL files, or better yet, read up on Skinr and add skins to customize blocks, etc.

juan_g

Sub-sub-themes fixed

Jalneal wrote:
> Acquia Commons is a subtheme of Fusion, and you can't have a subtheme of a subtheme (although I hear it's different in D7.)

This has been fixed very recently for the next Drupal 6.20. See for example the discussion More themes for Drupal Commons.

jalneal

Sweet!

Thanks for mentioning that juan_g!  That is awesome, hadn't thought that it was something that could simply be fixed in present core, but with Fusion, that will offer some awesome opportunities!

sheena_d

Custom Panels layout in Acquia Commons theme

Commons includes some custom Panels layouts that are a part of the Acquia Commons theme.  If you disabled Acquia Commons when you switched your theme, that is probably the cause of the problem.

 You can use a different theme, but you have to leave Acquia Commons enabled so that the custom Panels layouts can still be used.

Hope this helps!

Cheers,
Sheena

crom

Sub-theming Acquia Commons (1.5)

Just in case anyone's looking to sub-theme commons, here's what I did to create a sub-theme of Acquia Commons which in itself is a sub-theme of fusion core.

 

1) Create your new theme folder under sites/all/themes let's call it sg

2) create some folders for images and css in there and then create your CSS file in the CSS folder..let's call it sg-style.css - just leave it as an empty file for the moment.

3) copy the aquia_commons.info file across from  /profiles/drupal_commons/themes/acquia_commons and rename it sg.info

3) Add a blank template.php file to the sg folder

4) Edit sg.info and change it as follows (leave everything below the stylesheet line from the original .info as follows - only change the lines shown here):

 

; $Id: fusion_starter.info 7101 2010-04-08 06:51:41Z chris $

name = Sg
description = Sub-theme of Acquia Commons which is a Fusion Starter sub-theme. Requires <a href="http://drupal.org/project/fusion">Fusion Core</a> and the <a href="http://drupal.org/project/skinr">Skinr</a> module to enable easy point-and-click theming.
base theme = acquia_commons
core = 6.x
engine = phptemplate

stylesheets[all][] = css/sg-style.css

5) You should be good to go.

I know there are other guides but I got completely stuck for an hour or so trying to find out how I should refer to the base theme and I couldn't find an answer anywhere. Hope this helps someone.

Also, I'm more of a coder sort so if anyone can improve/correct this process then please fire away.

 

Cheers,
Crom

 

 

 

 

 

dmoorevtedu

now that is helpful

I never sub themed a sub theme before and kept messing it up.  Very clear and helpful.  Now I can work on my theme without messing up the Aquia commons theme.

dmoorevtedu

next steps

So what would be the next steps to add some additional Drupal Commons Colors (main color/highlight color) to the skinr configuration for panels.  Or is that done in skinr?

sheena_d

Hi Everyone, I saw crom's

Hi Everyone,

I saw crom's comment above last night and realized I should post an update to this thread :)

Turns out I have been working on creating a Starterkit for Fusion-based Drupal Commons themes.  I just promoted it to a full project on drupal.org and created a dev release of the theme.  The release should be up in a few minutes, whenver the drupal.org packager finished with it (or you can always clone it using git):

http://drupal.org/project/fusion_commons_starterkit

There are instructions in the README.txt file about how to get started.  Basically, this helps you easily create a direct sub-theme of Fusion, rather than needing to create a sub-theme of Acquia Commons.  This allows you to bypass a lot of the styling present in Acquia Commons, which is very helpful if you are working from a custom design.  If you are just looking to make a few small tweaks and changes to the Acquia Commons theme, it may still be the best approach to create a sub-sub-theme. 

You will find more helpful documentation at http://fusiondrupalthemes.com/support/theme-developers about things like creating/changing skinr styles, etc.  Also, at our forums at http://fusiondrupalthemes.com/forum, we are very responsive to theme-related questions... I don't get a chance to check commons.acquia.com as much as I would like, but I am on the FDT.com forums every day.

Happy Theming :)
~Sheena

tigron

Two thumbs up !!

Impressive ! I'm a big fusion theme fan and I can't wait to get my hands on this and start theming. Thanks for the time you put in.

amxcld9

I can't wait to try this out!

Thanks Sheena,

 

I can't wait to try this out!

I hope it will show up for download soon?

 

Cheers,

 

sheena_d

I am not doing so well at

I am not doing so well at creating releases on drupal.org with the new git system :) I will get the hang of it soon.

I managed to get a dev release up http://drupal.org/node/1120942

Note that the code at that link will automatically be updated whenever I push changes in git... It's perfectly safe to use, though, as I'm not planning to change much before a stable release.  I hope to get a stable beta release out in the next week or so.