Templates structure

Printer-friendly versionPrinter-friendly version

Example templates structure scheme of index page:

sites/default/files/templates_structure.png

As you see templates have nested structure, this allows to divide customization on some steps and makes customization more easy. All templates contain in 'themes/theme_name/views/' folder.

  • index page calls '/frontend/index.tpl' template
  • types page calls '/frontend/types_page.tpl' template
  • categories page calls '/frontend/categories_page.tpl' template
  • search results page calls '/frontend/search_page.tpl' template
  • advertise page calls '/frontend/advertise_with_us.tpl' template
  • frontend user's profile page calls '/frontend/user_page.tpl' template
  • quick listings page calls '/frontend/quick_list.tpl' template
  • listing page calls '/frontend/listing_page.tpl' template
  • listing print page calls '/frontend/listing_print.tpl' template

Typically frontend smarty template includes such blocks:
{include file="frontend/header.tpl"}
    {include file="frontend/search_block.tpl"}
    {include file="locations/navigation_block.tpl"}
        {include file="frontend/left-sidebar.tpl"}
        CONTENT HTML HERE
        {include file="frontend/right-sidebar.tpl"}
{include file="frontend/footer.tpl"}

Take attention to main content block on the example image above.The group of listings builds using blocks and wrappers. Wrappers dependent from listings' views: semitable and short views are wrapped by certain wrapper templates because they require special html tags before and after (like html tables heading), full view doesn't need wrapper.