Creating Custom Regions In Drupal 6 Themes. Previously, I covered the topic of creating custom regions in Drupal 5 themes. However, Drupal 6 introduced a new process for creating custom regions in themes and it is still one of the topics people ask about most frequently. So, here's a tutorial on how to create custom regions in your Drupal 6 themes. In this example I will use the Garland theme, and insert a new region called 'Uber content', which I'll position above everything in the main content area. It's basically a two step process: step 1 - define the custom region in your theme's . PHP in your theme's page. Step 1 - define the custom region in your theme's . All Drupal 6 themes contain a . This is a required element in Drupal 6 themes which allows Drupal to 'see' your theme. The . info file for your Drupal 6 theme will be located within the root of the theme's main folder. Garland's . info theme file is located at: /themes/garland/garland. It contains the following: ; $Id: garland. Exp $name = Garlanddescription = Tableless, recolorable, multi- column, fluid width theme (default). VERSIONcore = 6. xengine = phptemplatestylesheets. How to create a new region in omega subtheme? How to use individual fields inside template files of a Drupal theme 2 How to make a custom layout in a subtheme from omega 4 Drupal show in 0. Drupal Zen Region Template For ResumeHowever, there are regions available to our blocks in Garland's blocks admin section (admin/build/block). Well, unless otherwise specified in the . Drupal 6 themes contain a set of default regions - namely: Left sidebar, Right sidebar, Content, Header, and Footer. Garland is one such theme. We are about to change that! We are going to declare a new theme region in the . So, we must add: regions. Two easy ways to do so are: navigate to your site's admin 'Performance' page (admin/settings/performance), scroll down to the bottom section entitled 'Clear cached data' and click on the button marked 'Clear cached data'install the devel module, enable the block which this module generates, and within that block there will be an 'Empty cache' link that you can click. Upon clearing the cache you should receive a success message saying 'Caches cleared'. Open your theme's page. In Garland we are going to insert our ubercontent region above all of the other main content. To do so, we open Garland's page. Content can now successfully be added to and displayed in our new 'Uber content' region. Further reading. For more info on the . Drupal 6 theme guide, specifically. More about Drupal Zen theme June 12, 2010 at 8:49 am (CMS, CSS, FOSS, PHP, Web) In my previous post I discussed about making use of. Creating a Custom Theme using Zen Theme Creating a Custom Theme using Zen Theme Themes define the presentation layer of your web site - the look and feel as well as placement of navigation and content. You can create an independent theme or a sub. Previously, I covered the topic of creating custom regions in Drupal 5 themes. However, Drupal 6 introduced a new process for creating custom regions in themes and it is still one of the topics people ask about most frequently. So, here's a tutorial on how to create. Creating Custom Themes and Zen in Drupal 6 written by Karthik Kumar : one of the many articles from Packt Publishing. Navigate to the sites/all/themes/zen/templates folder which contains the default templates. Copy the page.tpl.php file. Drupal Zen Region Template For Business
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2016
Categories |