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. Only the .info file is required, but most themes and sub-themes will use other files as well. 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. Others Looking for support?

https://www.drupal.org/node/171194

Related:  Drupal

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. Structure of the .info file The .info file is a static text file for defining and configuring a theme. Each line in the .info file is a key-value pair with the key on the left and the value on the right, with an "equals sign" between them (e.g. name = my_theme). Semicolons are used to comment out a line. Some keys use a special syntax with square brackets for building a list of associated values, referred to as an "array". If you are unfamiliar with arrays, have a look at the default .info files that come with Drupal and read the explanations of the examples that follow.

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. How To Install Oracle Java 7 (JDK) In Ubuntu As you probably know, Oracle Java (JVM/JDK) will not be available in the Debian / Ubuntu repositories anymore because Oracle retired the "Operating System Distributor License for Java" (JDL) and the only release available in the repositories will be OpenJDK. But of course, Oracle Java can still be downloaded from its website if you really need it and don't want to use OpenJDK: Linux users who prefer to use the thoroughly tested Oracle JDK 6 or Oracle JDK 7 binaries over OpenJDK builds packaged in their Linux distributions of choice can of course as usual simply get the gratis download at under the same terms as users on other platforms. However, installing it in Ubuntu is not that easy, so here is how to install the latest Sun Oracle Java JDK 7 (at the time I'm writing this post) in Ubuntu.

Breaking Drupal 7 Webforms into Multiple Steps the Easy Way I recently played the role of Information Architect on a site remodel. We were charged with the task of doing a brand new build to replace an existing Flash site. One of the priorities of the client was to retain the elaborate Request for Quote form. There were many, many form fields that comprised this web form so I began to ponder if we should break the form up into a multiple step form, to improve the overall user experience. After careful consideration, I decided that we should definitely split the form up (for more on this matter check out Pagination in Web Forms | Evaluating the Effectiveness of Web Forms on UXmatter.com).

Enhancing Your Ubuntu Server A few weeks ago, I showed you how to setup your very own linux server. Now, I'm going to show you how to add even more functionality. Before We Begin... This guide assumes that you've followed my previous tutorial, How to Setup a Dedicated Web Server for Free, or that you've got a similar server already set up. 10 Steps to Creating A CTools Modal Window with Drupal 7 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.

How to install Eclipse 3.7 on Ubuntu 11.04 The Eclipse packages in Ubuntu are are very out of date. The latest version in the Ubuntu repos is 3.5.2 where as the latest version of Eclipse is 3.7. I’m posting this because Ubuntu 11.04 uses the new Unity desktop which uses overlay-scrollbars (scrolls bars that are hidden until you hover over them). Is there a way to display the product image as a radio button instead of a select box when selecting a product in a product display? current community your communities Sign up or log in to customize your list.

8 Ways to Maintain a Clean, Lean Ubuntu Machine Once in a while, you may want to do some maintenance on your Ubuntu machine and clean up unnecessary files that are chunking up large storage space in your hard disk. Here are 8 ways that you can use to clean up your Ubuntu: 1) Analyze your disk usage The first thing that you need to do is to find out which files are consuming the large bulk of the storage space in your hard disk. Ubuntu 11.04: How To Enable the Unity Desktop Interface : Product Reviews Net By Jamie Pert Posted 9 May 2011, 19:15 Lots of people are still unsure as to whether the Unity user interface which was rolled out with Ubuntu 11.04 Natty Narwhal is an improvement when compared to Gnome, one thing which we recently realised upon installation of the latest Ubuntu release is the fact that for lots of people it is not available upon installation. Because the Unity UI is more demanding on your computer hardware you may need to install additional drivers to allow it to work, this is a very simple process thanks to Ubuntu’s built in “Additional Drivers” menu option. All we had to do was go to System, Administration and then select “Additional Drivers”, here we found that Ubuntu had found some propriety Nvidia drivers which we could install, they had not been enabled as standard as they were not open-source.

Related: