Drupal Theme Metadata
Writing a .info file is the first step when we create a Drupal theme, .info files contain important metadata about the theme, such as the list mentioned below.
- name /*required*/
name = A firt theme name
- description /*recommended*/
description = multicolum Responsive theme
- screenshot
screenshot = screenshot.png
- version /*discouraged*/
version = 3.1
- core /*required*/
core = 7.x
- engine /*required in Drupal 6*/
engine = phptemplate
- base theme
base theme = zen
- regions
regions[left] = Left sidebar
regions[right] = Right sidebar
regions[content] = Content
regions[header] = Header
regions[footer] = Footer
- features
features[] = logo
features[] = name
features[] = slogan
features[] = mission
features[] = node_user_picture
features[] = comment_user_picture
features[] = search
features[] = favicon
- theme settings
settings[toggle_logo] = 1
- stylesheets
stylesheets[all][] = style.css
- scripts
scripts[] = script.js
- php
php = 5.3.9
Each theme requires some basic properties to be set in the themes .info file. The name, core, and
engine properties are the minimum requirements for all Drupal themes, Drupal will use default values for the optional keys missed in .info file
Thanks
0 Comment(s)