-
Notifications
You must be signed in to change notification settings - Fork 20
templating
#Templating
All of the template files within BootstrapBlocks are located in the /templates
directory. Additional subfolders exist within the templates directory to help further organize template files. Below each template type in BootstrapBlocks by default is outlined. If you are adding new template files, please remember to clear your cache before expecting to observe changes (drush cc theme
).
##Content Type Page Temlates
BBB Adds support for content-type page templates. page--contentTypeName.tpl.php
files can be used to customize layouts for specific content types.
##404 Error Page Template Do something fun with your 404 error page! :) I've provided a default, but get crazy with it!
##Include Files
Code that might be used in multiple template file should be placed in appropriate files within the /templates/includes/
directory. Especially keep this in mind if you have multiple content type page templates in use.
##Block Templates
All block templates should be placed in /templates/blocks/
. For more information about theming blocks, see the Drupal documention for writing block.tpl.php files.
##Field Templates
Field templates should be placed in /templates/fields/
. For more information about theming fields, see the Drupal documentation for writing field.tpl.php files.
##Node Templates
Node tempaltes should be placed in /templates/nodes
. For more information about theming nodes, see the Drupal documentation for writing node.tpl.php files.
##Region Templates
Region templates should be placed in /templates/regions
. For more information about theming regions, see the Drupal documentation for writing region.tpl.php files. A number of region templates exist by default in Bootstrap Blocks.