3DWeb

Join the Wider Debate

A Brief Drupal Theme Tutorial
By Jeff Agres

This tutorial is not meant as an end all training session for learning to theme drupal, but more as a bare bones beginner guide for the novice drupal user. It is meant not necessarily to teach someone to theme their own sites but to give the basic idea of how the themes work and why and what the main files of each theme do.

So you don't know anything about Drupals theming, well although you don't necessarily have to, it is always a good idea to know a little about the workings of your cms. Drupal uses what they call themes to manage the look and feel of a site. The site is generally broken down into a few basic components and the output is basically themed. What does this mean, well your Drupal site is mostly php files with some HTML and CSS. With a little knowledge of these you can control the total look of your site. Drupal uses basically a template when it creates each page off of information in your database. These key files control the look of comments, nodes, blocks and a few other areas of the site. Altering these files can have a dramatic change in how your site looks.

There are basically a few files that all Drupal themes have (Some have more) a page.tpl.php
This is the main layout of your pages, it contains php snippets and HTML which the rest of your theme files feed when building the page.

There is a comment.tpl.php , this file contains the info for your comments in Drupal.

node.tpl.php , ok you probably guessed it, its the file that decides what each node will look like.

box.tpl.php Gives you a box around your content.

style.css This is your sites main style sheet. You can control so much with this file that you could spend a full day trying to figure what each class and id affects.

There are a few other files generally in each theme but these are your workhorses. Other files include your logo file, info file, and a screen shot.

Now you have a basic idea of what your theme files do. Take some time and check out each file individually, try to understand how they work and interact. It is through changing these files and adding to them that you can start to create your own themes. There is nothing wrong with taking one of drupals contributed themes and using them to start work on your own.

Remember creating Drupal themes is easier if you build off what you already have.

Article Source: http://EzineArticles.com/?expert=Jeff_Agres

Penis Enlargement
Male Enhancement
Penis Enlargement
Web Directory

Share 

Comment

You need to be a member of 3DWeb to add comments!

Join this Ning Network

Blog Posts

Glenn Gunhouse

Switching to Unity3D

Since Blink 3D (like Adobe Atmosphere before it) has failed to thrive, I have switched to Unity3D. I am now in the process of converting my Blink projects to Unity. Check out the Unity version of the Virtual Roman House at http://www.medievalist.net/unityworlds/romanhouse.htm and the Virtual Byzantine Church at http://www.medievalist.net/unityworlds/crossinoctagContinue

Posted by Glenn Gunhouse on December 11, 2009 at 5:42pm

Ken Rigby (MellaniuM, Tele3dworld)

Certification of VW for "Fit for Purpose" or higher?

If it was necessary to get a airworthiness certificate web.alive would be the only one at present to pass. Solid designed (de-facto) engine, tested for over 6 years in UT, etc. Server-side security, CRM data, usability, automatic VOIP 3D spacial audio embedded, password protection, admin control (ability to kick, ban, etc,) staight of the peg or bespoke environments. See http://mellanium.co.uk/application-areas.php for sample application… Continue

Posted by Ken Rigby (MellaniuM, Tele3dworld) on November 27, 2009 at 9:45am

Ken Rigby (MellaniuM, Tele3dworld)

"Indie" game engines vs De-Facto 3D game engines

"Indie" game engines do not have the stability/past performance record to achieve the required stability for professional applications. Factors of security, functionality, re-usability. tutorials, user knowledge has been acquired and built for over 10 years. Why try to invent the wheel; just find new ways to use it, is the challange now. Costs; we can provide a be-spoke VW using web.alive from £25K and can host for around £1K/Month for 20 peak port users. Why bother to create your own?
see http:… Continue

Posted by Ken Rigby (MellaniuM, Tele3dworld) on November 22, 2009 at 10:02am

Ken Rigby (MellaniuM, Tele3dworld)

Immersive Environments using Web.Alive

There are game engines, originally created for development of computer/video games, which can be used for non-game virtual worlds. Unreal Engine (UE) by Epic Games ( http://www.unrealtechnology.com ) is probably the strongest, robust and most popular. UE is a complete 3D development framework for PCs, Xbox 360 and PLAYSTATION 3, providing a vast array of core technologies, content creation tools, and support infrastructure.
Main features of the Unrea… Continue

Posted by Ken Rigby (MellaniuM, Tele3dworld) on November 9, 2009 at 11:25am

© 2009   Created by martine parry on Ning.   Create a Ning Network!

Badges  |  Report an Issue  |  Privacy  |  Terms of Service