We are excited to get the chance to work with the guys down at companyX on a number of exciting Drupal projects. We can't go into too many details yet, but watch this space ...
By default the Drupal event module will provide a nice calander block, listing the days of the week accross the top using 3 letter abbreviations (mon, tue etc). This little theme snippet will override this default behaviour and display the first letter of each day of the week (i.e. M T W) etc. Pop the following into your template.php file and you should be in business function phptemplate_event_calendar_month($op, $header, $rows, $attributes = array(), $caption =...
TinyMCE has a habit of popping up right where you don't want it - the log field on a node edit page is a good example. Lucklily it is a relatively easy job to theme out tinymce for a particular textarea. The following theme override should go into your template.php file function phptemplate_tinymce_theme($init, $textarea_name, $theme_name, $is_running) { switch($textarea_name){ case 'nodewords-description': case 'edit-nodewords-description': unset($init); return $init; break; default: return theme_tinymce_theme($init, $textarea_name, $theme_name, $is_running); } } Just...
One of the most annoying things about developing a Drupal theme is the lack of an 'active' class on your primary links. By default the primary links are given a class of menu-X-Y-Z-active if they are active. From a theming point of view, this is next to useless, you need a nice standalone active class on your primary links. So - here is a very simple snippet for your template.php file ... function _phptemplate_variables($hook,$vars){ if...
We have had a few sites recently on which TinyMCE was playing up on narrow themes. The buttons where not breaking onto new lines, causing the TinyMCE textarea to be much too wide. We solved the problem with the following snippet of CSS .mceToolbarTop * { float:left; } .mceToolbarTop select { width:auto!important; } .mceToolbarTop option { float:none; }
Drupal 5.3 was released early this morning, fixing a number of security issues and a number of other small bugs (all the fun feature stuff is only being added to Drupal 6!). We will be having a play with 5.3 on sites still under development to make sure its not going to cause any problems, before begining the roll out onto our client's sites some time this afternoon. For more information check out this http://drupal.org/drupal-5.3
We are pleased to be working with the excellent Paul Evans on a number Drupal based sites. Computerminds are looking after the back end, and phptemplate themeing, allowing Paul to concentrate on what he does best - producing beautiful looking sites!
Adding new custom regions (areas into which you can place blocks) to a Drupal template is dead easy ... Simply add the following to your template.php file : function YOUR_THEME_NAME_regions() { return array( 'content_top' => t('content top'), 'content_bottom' => t('content bottom'), 'left' => t('left sidebar'), 'right' => t('right sidebar'), 'content' => t('content'), 'header' => t('header'), 'footer' => t('footer'), 'new_region1'=>t('A new region') ); } Make sure you change the YOUR_THEME_NAME bit to match the name of...
Computerminds are proud to be members of the Drupal association and encourage all our clients to contribute as well. The Drupal association was established to help the Drupal community with funding, infrastructure, events, promotion and distribution. It has already made a significant difference to the invaluable drupal.org site with contributions of some lovely new hardware.
Drupal 5.2 was released last night, containing a couple of quite importants ecurity patches and some other minor bug fixes. http://drupal.org/drupal-5.2 We will be upgrading our client's sites over the next couple of days