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

Documentation Wiki

Template overrides


Template overrides allow for the customization any layout provided by a PostNuke module or block. Two types of template overrides exist: global and theme specific.

Global template overrides


Global template overrides allow the customization of a piece of layout for all themes. Global template overrides exist so that pieces of layout can be altered without having to modify the base template supplied by the module to ensure that no changes are lost during upgrades of PostNuke and/or the module.

Global template override are located the directory config/templates/<template path>

The template path will depend on the exact template being overridden. For example to override the template

modules/Example/pntemplates/example_user_display.htm

create a new template in

config/templates/Example/

i.e. the new template is

config/templates/Example/example_user_display.htm

Theme specifc template overrides


Theme specific template overrides allow for the customization of a piece of layout for one theme only. Most themes will supply some default theme specific template overrides - usually for the News module. Theme specific overrides allow for a theme to provide a completely different look and feel to a site.

Theme specific template overrides are located in the directory

themes/<theme name>/templates/modules/<template path>

Again the template path is dependent on the template being overriden. Using the same example to override the template

modules/Example/pntemplates/example_user_display.htm

for the theme 'andreas08' create the new template in

themes/andreas08/templates/modules/Example/

i.e. the new template is

themes/andreas08/templates/modules/Example/example_user_display.htm


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

1 Comments so far

(Latest comments )

Bad_Dude's Avatar

1. Bad_Dude wrote on Mar 13, 2007 at 12:37 AM

So onces the edited file is uploaded in that directory, the changes will effect automatically....

Main Menu

Extensions Database

Documentation

Development

Login





 


 Log in Problems?
 New User? Sign Up!

Donate to PostNuke