Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Drupal Theme Metadata

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 101
    Comment on it

    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.

    1. name /*required*/
    2.  name = A firt theme name 
    3. description /*recommended*/
    4.  description = multicolum Responsive theme 
    5. screenshot
    6.  screenshot = screenshot.png 
    7. version /*discouraged*/
    8.  version = 3.1 
    9. core /*required*/
    10.  core = 7.x 
    11. engine /*required in Drupal 6*/
    12.  engine = phptemplate 
    13. base theme
    14.  base theme = zen 
    15. regions
    16.  
                  regions[left] = Left sidebar 
                  regions[right] = Right sidebar  
                  regions[content] = Content
                  regions[header] = Header
                  regions[footer] = Footer
              
    17. features
    18.             features[] = logo
                  features[] = name
                  features[] = slogan
                  features[] = mission
                  features[] = node_user_picture
                  features[] = comment_user_picture
                  features[] = search
                  features[] = favicon
              
    19. theme settings
    20.  settings[toggle_logo] = 1 
    21. stylesheets
    22.  stylesheets[all][] = style.css
    23. scripts
    24.  scripts[] = script.js
    25. php
    26.  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)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: