PostNuke: A Flexible Open Source Content Management System
home | forum | international support | contact us

Documentation Wiki

Anatomy of a PostNuke theme


A theme is collection of files organized with a specific layout. The theme engine interprets these files to present the layout of the content produced by modules and blocks.

All themes are placed within the 'themes' directory of PostNuke site. Within the theme directory a number of files and directories are required. At the top level of the theme there must be the following structure:

  • <theme name>/version.php - a php file containing theme information that gets imported into the Database
  • <theme name>/images/ - directory containing theme images.
  • <theme name>/style/ - directory containing theme stylesheets
  • <theme name>/plugins/ - directory containing theme specific template plugins
  • <theme name>/lang/ - directory containing theme language files
  • <theme name>/templates/ - directory containing templates that contain the markup of the theme

Within the templates folder the directory structure will, depending on the theme configuration files, typically contain:

  • <theme name>/templates/master.htm - page template used to render all pages not having a specific page template assigned
  • <theme name>/templates/blocks/ - directory containing block templates
  • <theme name>/templates/modules/ - directory containing page templates used to render pages with a specific page template assignment
  • <theme name>/templates/modules/<other directories> - directories containing template overrides for modules

Lastly:

  • <theme name>/templates/config/ - the heart of the theme. directory containing the ini files that define what templates are used to render what parts of all output, what theme variables exist, what palettes are available, etc.



Theme Authoring Index Page
CategoryDeveloperDocs
CategoryUserDocs
XML Revisions of $tag
Page history :: Last Editor [ randomblink ] :: Owner [ markwest ] ::
Valid XHTML :: Valid CSS :: Powered by pnWikka 1.0 (A wiki fork from WikkaWiki)
 

Main Menu

Extensions Database

Documentation

Development

Login





 


 Log in Problems?
 New User? Sign Up!

Donate to PostNuke