background preloader

Overview of theme files

Overview of theme files
Last updated February 5, 2015. Created on August 28, 2007.Edited by heather, dustise, er.pushpinderrana, drupalshrek. Log in to edit this page. A theme is a collection of files that define the presentation layer. You can also create one or more "sub-themes" or variations on a theme. Drupal 6 Drupal 7 .info (required) All that is required for Drupal to see your theme is a ".info" file. The internal name of the theme is also derived from this file. Info files for themes are new in Drupal 6. template files (.tpl.php) These templates are used for the (x)HTML markup and PHP variables. Note: The theme registry caches information about the available theming data. template.php For all the conditional logic and data processing of the output, there is the template.php file. Sub-themes On the surface, sub-themes behave just like any other theme. Drupal 5 and below required sub-themes to be in sub-directories of the parent theme. Others Looking for support? Related:  Drupal

HowTo: Create a local environment using MAMP MAMP creates a local server environment on Mac OS X by installing PHP, MySQL, and Apache right out of the box. This will make Drupal much easier to install because the components don't have to be installed separately. This page is to be used in conjunction with the installation instructions for Drupal on Mac OS X. Also you may want to check out this video in the Videocasts section of the handbook: Installing a Local Web Server on Mac OS X. Download MAMP (This will install Apache, MySQL, and PHP in one step.) Download Drupal Find the latest Drupal release here: Move the directory containing the Drupal files into the MAMP htdocs directory: mv drupal-x.x.x/* drupal-x.x.x/.htaccess /Applications/MAMP/htdocs/yourdrupaldir where yourdrupaldir is whatever you want the directory to be called. Note: if you use Finder you may miss moving the .htaccess file which is necessary for clean URLs to work. Create the Drupal database To create a database for Drupal Changing your password NOTE!!

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).

Modules Menu Trail By Path sets the active-trail on menu items according to the current url. For example if you are at Menu Items with these paths will get the active-trail class on them and expand accordingly. blog blog/category1 blog/category1/article1 This is particularly useful if you want a lot of nodes to appear as children of certain nodes / taxonomy term / views / referenced nodes / etc, but do not want to add them all to the menu. eg. hundreds of blog articles. Menu Trail By Path is best used in conjunction with Pathauto. This module is similar to Menutrails (D6) and Menu Position (D7), except no configuration is needed. 7.x-2.x branch 7.x-2.x branch is completely rewritten. Can also handles breadcrumb by path. 6.x-1.x branch NOTE: The 6.x-1.x branch is no longer supported and will not receive further development.

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 is for specific bug reporting and documentation deficiencies only. In addition to the forums, community members regularly hang out in #drupal-ubercart on

Drupalize.Me 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 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 :

Research and academia | Employment type: Full time Reporting to the Museum's Director of Technology, the Team Leader will work in a hands-on capacity, and will oversee the entire development lifecycle for web projects from conceptualization and project inception to post production support. The Team Leader will interact with representatives of the Museum's various departments (e.g. scientific research, conservation, education, exhibitions, public programming, digital outreach, etc.) to guide and coordinate web page/feature strategy for those departments and for the Museum overall. Please submit cover letter and resume to:

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 file to get started with our module: Simple enough. The plugin type <?

Glossary Last updated April 13, 2014. Created by Dries on December 23, 2002.Edited by kay_v, shyam kumar kunkala, micnap, tsbah. Log in to edit this page. This glossary describes terminology and acronyms used in the Drupal project and by the Drupal community. action # A function that operates like a stored procedure. anonymous # A visitor to a Drupal website who is not currently logged in. An application programming interface (API) is a particular set of rules (“code”) and specifications that software programs can follow to communicate with each other. argument # A section of the path for a page on a Drupal website. Article # One of two content types that are enabled in the standard installation profile. Back to Top Basic page # One of two content types that are enabled in the standard installation profile. Base theme # A Base theme is a well-written set of CSS and template files that a theme developer can make use of in a new custom theme. Binary Large Object. block # BoF # book # cache #

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.

Using a different domain name for each language | Drupal-Transla Drupal makes it easy to serve different language versions of your websites from different domains. This allows you, for example, to have English contents in and Spanish contents in Different languages can be in subdomains or completely different domains, including different top level domains (TLDs). To do this, you'll need to setup Drupal to serve different languages in different domains and you'll also need to setup your web server to point all domains to the same Drupal site. Setup in Drupal 1) Go to /admin/settings/language/configure and select "Domain name only" as the Language negotiation. 2) Go to the language administration page, /admin/settings/language and edit each language to include the domain name For English: For Spanish: Setup in the server configuration file Once you've set up Drupal to serve differnt languages in different domains, you need to instruct your web server to send requests from multiple domains to the same Drupal site.