
The template setup of the NatSkin differes completely from the standard templates that come with Foswiki folowing its own inner logic compared to the Foswiki:Extensions/PatternSkin. The NatSkinTemplates have especially been designed to simplify subskins overwriting parts of the NatSkin.
Every template belongs to a group defined by their function:
Each group consists of one or more entry templates, e.g. attach group has three entry templates: attach, attachnew and attachagain, If a template group has more than one entry template then these build upon and intercostal base template, named The oops template group is a bit different from the others as it has subgroups of templates for authentification, notification and error messages. Some of these groups have an own base template shared among messages of the same type. All oops templates are finally using the central oops template. Ssee the INCLUDE hierary below. Every group uses three fragment templates: So the fragment templates for the attach group are attachbody, attachsidebar and attachtopicactions (omitting the All groups finally call the page template that constructs the resulting html by inserting all TMPL macros. The page template itself only defines defaults for the standard fragments. This is the INCLUDE hierarchy of the templates in the NatSkin. Each indentation means, that the upper template INCLUDEs the lower template(s). If a template name has already been defined, further indentations are pruned. So whenever a template INCLUDEs the page template all default fragments are left out for clarity. nat.tmpl extension). These can be used by subskins to implement a different look and feel per web with a minimal amount of code duplication.
Copyright © by the contributing authors. All material on this site is the property of the contributing authors.