Home | Index

r3 Reference Guide

r3 template searchpath

r3 template searchpath location [ template_name ]

Provides an indexed list showing the inheritance chain of the specified location and template. A location is the unique combination of product/intl/page dimensions. If you don't specify a template name, r3 uses the template name stored in the pages tables. If not specified, the template name stored in the pages table is used. If you wish to view the searchpath of an included file in this page, you must specify the file's name as the template_name.

For example, consider the following inheritance relationships (set by r3 dimension dimension create/parent):

product intl page
cheese ca index.html
generic fr generic
generic

r3 template searchpath cheese/ca/index.html index.html.ros generates the following listing of the inheritance chain, from least to most generic:

  0         cheese/ca/index.html             index.html.ros
  1         cheese/ca/generic
  2         cheese/fr/index.html
  3         cheese/fr/generic
  4         cheese/generic/index.html
  5         cheese/generic/generic
  6         generic/ca/index.html
  7         generic/ca/generic
  8         generic/fr/index.html
  9         generic/fr/generic
  10       generic/generic/index.html
  11       generic/generic/generic

The elements for each dimension are acquired according to inheritance relationships. So in the product dimension, the product element cheese inherits from generic, and the intl element ca inherits from fr (which in turn inherits from generic), and the page element index.html inherits from generic.

aliases

flags