Skip to main content

Posts

Showing posts from January, 2014

Files that Drupal Themes Use

A drupal theme is a collection of files that define the presentation layer. You can also create one or more "sub-themes" or variations on a drupal theme. Only the .info file is required, but most themes and sub-themes will use other files as well. The following diagram illustrates the files that are found in a typical drupal theme and sub-theme. Drupal 6: Drupal 7: .info   (required) All that is required for Drupal to see your theme is a ".info" file. Should the theme require them, meta data, style sheets ,  JavaScripts ,  block regions  and more can be defined here. Everything else is optional in drupal theme. The internal name of the theme is also derived from this file. For example, if it is named "drop.info", then Drupal will see the name of the theme as "drop".  Drupal 5 and below used the name of the enclosing folder of the theme. Info files for themes are new in Drupal 6. In version 5, .info files were used solely for dru

Drupal User, Permission, Role in Drupal

Every visitor to your  drupal  site, whether they have an account and log in or visit the site anonymously, is considered a  user   to Drupal. Each drupal user has a numeric user ID, and non-anonymous users also have a user name and an email address. Other information can also be associated with drupal users by modules; for instance, if you use the core  Profile Drupal module , you can define user profile fields to be associated with each drupal user. Anonymous drupal users have a user ID of zero (0). The drupal user with user ID one (1), which is the user account you create when you  install Drupal , is special: that user has permission to do absolutely everything on the site. Other users on your site can be assigned permissions via  roles . To do this, you first need to create a role, which you might call "Content editor" or "Member". Next, you will assign  permissions  to that role, to tell Drupal what that role can and can't do on the site. Finally, yo