# Templates for contact pages

## Templates for contact pages

With templates you design whole pages of a component in the YOOtheme builder. Contact Directory adds two types:

<table id="bkmrk-contact-categorythe-"> <tbody> <tr><td>**Contact Category**</td><td>The view of a contact category (menu item *Contacts → List Contacts in a Category*). Conditions: categories – with or only with child categories –, page number, language.</td></tr> <tr><td>**Featured Contacts**</td><td>The view of the featured contacts (menu item *Contacts → Featured Contacts*). Conditions: page number, language.</td></tr> </tbody></table>

YOOtheme Pro brings the template for the single contact page (*Single Contact*) itself.

## Creating a template

1. In the YOOtheme customizer, open *Builder → Templates* and add a template.
2. Choose the type *Contact Category* or *Featured Contacts* and set the conditions if needed.
3. Build the layout. Under *Dynamic Content*, the group *Page* offers:

<table id="bkmrk-contact-categorytitl"> <tbody> <tr><td>**Contact Category**</td><td>Title, description, image and further fields of the category (template *Contact Category* only).</td></tr> <tr><td>**Child Contact Categories**</td><td>The child categories (template *Contact Category* only).</td></tr> <tr><td>**Contacts of the Page**</td><td>The contacts of this page – in the order and page size the menu item sets. Start and quantity pick a section.</td></tr> </tbody></table>

For pagination, put YOOtheme's element *Pagination* into the layout.

The display options and the visibility apply here as for the sources.

## Link of a contact category

The field *Link* of a contact category leads to the category view of the contacts – also for the field *Category* of a contact. Without Contact Directory, YOOtheme Pro leads to an article category here.

<small>Applies to version 1.0.0.</small>

[Deutsche Fassung](https://docs.graup-it.de/link/475)