Creating Custom Regions | My Drupal Blog UPDATE The following tutorial covers the creation of custom regions in Drupal 5 themes. If you are using Drupal 6 please see the newer creating custom regions in Drupal 6 themes instead. All Drupal themes you download will come with a number of pre-defined regions into which you can already place blocks (normally header, left-sidebar, content, right-sidebar, footer), but it can sometimes be useful to create your own. This can seem a little daunting at first, but it's really just a simple two-step process: step 1 - define the custom region in your template.php filestep 2 - add the custom region to your page.tpl.php file So, lets see how it works. Step 1 - define the custom region in your template.php file All themes should have a template.php file contained within the theme folder. Open the template.php file in your chosen editor and locate the function titled 'function nameoftheme_regions' (where nameoftheme will be the name of the theme to which you are adding a custom region).
Ubercart Ubercart is the most popular Drupal E-Commerce platform for your website. It implements everything you need to start selling products online. Web Developers from all skill ranges can use it to support a variety of E-Commerce industries-- including physical goods, digital downloads, or even subscription based billing services. Ubercart can do it all! For more details, be sure to visit the What is Ubercart? page for more info. Current Features: Ubercart is PayPal certified and integrates PayPal Website Payments Standard, Website Payments Pro, and Express Checkout. You are responsible to ensure your merchants and customers are protected from online payment fraud. Support & Issue Tracking Ubercart maintains a customized support forum at the community site. (Please note: the issue tracker enabled here at Drupal.org is for specific bug reporting and documentation deficiencies only. In addition to the forums, community members regularly hang out in #drupal-ubercart on irc.freenode.net.
Créer un thème Drupal avec des CSS, et rien d'autre Traduction de la page publiée / actualisée le 11 Mars 2011 sur drupal.org Dans Drupal 6 et Drupal 7, plusieurs améliorations du core facilitent la tâche des concepteurs de thème qui travaillent en CSS et ne touchent pas au code PHP. Le thème Stark a été créé pour aider les concepteurs à connaître le code xhtml généré par Drupal, il fait partie du core de Drupal 7. Les concepteurs de thèmes peuvent maintenant réaliser de superbes thèmes uniquement avec des CSS. Ce tutoriel vous montrera comment créer, en quelques étapes simples, votre propre thème Drupal 6 ou 7 à base de CSS. Etape n° 1 : créer le dossier du thème et le fichier .info La première étape dans la réalisation d'un thème est de créer le dossier où il sera enregistré, et créer le fichier .info pour informer Drupal de son existence. Pour créer le dossier : Créez ce dossier dans le dossier /sites/all/themes Nommez-le votretheme, tout en minuscules Pour créer le fichier .info * Notes :
Building Custom cTools Plugins in Drupal 7 cTools is one of those critical Drupal 7 modules many others depend on. It provides a lot of APIs and functionality that makes life easier when developing modules. Views and Panels are just two examples of such powerhouses that depend on it. cTools makes available different kinds of functionality. In this article, we are going to take a look at cTools plugins, especially how we can create our very own. Introduction cTools plugins in Drupal 7 (conceptually not so dissimilar to the plugin system in Drupal 8) are meant for easily defining reusable bits of functionality. If you’ve been developing Drupal sites for more than a year you’ve probably encountered cTools plugins in one shape or form. However, all of the above are to a certain extent a black box to many. The final code (+ a bit more) can be found in this repository if you want to follow along. The block_plugin module First, let’s create our block_plugin.info file to get started with our module: Simple enough. The plugin type <?
Jello Exposure | Christian Zuckschwerdt's blog Submitted by zany on Fri, 08/22/2008 - 23:17 A very light and bright Drupal theme using the Zen framework. The main color is pure white with delicate gray highlights. The main feature here is a Jello-style layout for Zen. The theme for this site uses the layout.css, try resizing the browser to get an impression of the Jello effect. The actual theme specific css is just lightly themed to present it in a nice way. There is one simple change to the page.tpl.php file, a div#float-wrap is added to wrap the main content and left sidebar so they can be grouped against the right sidebar. The bulk of code is in the layout.css, here are the main changes to the zen/layout-liquid.css as pseudo diff: There is some more rigid vs. elastic positioning, but that's about it.
10 Steps to Creating A CTools Modal Window with Drupal 7 | Managed Drupal and Wordpress Hosting Modal windows are excellent design features because it allows you to easily display more information on a page without causing the inconvenience to the audience by making them load an entirely different page. I use modals where I want to display more information that isn't voluminous enough to merit a separate full page load. Figure 1: These are links of titles, generated by a view that when clicked trigger a modal window with additional content. Figure 2: After clicking on a link as shown in figure 1, a modal window appears with additional information. There are two general ways to easily create modals in Drupal. The first, and common method is to use the ColorBox or the Lightbox2 modules. For more control over theming and content of the modal, and gain knowledge of how modal windows work, I took the plunge into Earl Miles' (aka Merlin of Chaos) Chaos Tools, or CTools method of modal creation. This tutorial requires an intermediate to advanced level of understanding of Drupal 7. 1. 2. <?