[Sugester V2 EN](https://sugester.intum.pl/kb/sugester-v2-en.md) / [Syntax](https://sugester.intum.pl/kb/sugester-v2-en/syntax-en.md)

# [Contact information in the footer (Syntax template)](https://sugester.intum.pl/kb/sugester-v2-en/contact-information-in-the-footer-syntax-template.md)

## Contact Information in the Footer

The `syntax` template displays the contact section in the knowledge base footer if the appropriate fields are set.

## Available Fields

In the knowledge base settings (field `fields`), you can set:

<table>
<tr><th>Field</th><th>Description</th><th>Example</th></tr>
<tr><td><code>contact_email</code></td><td>Email address with mailto link</td><td><code>help@company.com</code></td></tr>
<tr><td><code>contact_phone</code></td><td>Phone number with tel link</td><td><code>+48 22 123 45 67</code></td></tr>
<tr><td><code>contact_text</code></td><td>Helper text above the data</td><td><code>Need help?</code></td></tr>
</table>
## How to Set

### Through API

```bash
curl -X PUT "https://DOMAIN/kb/knowledge_bases/ID.json?api_token=TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "knowledge_base": {
      "fields": {
        "contact_email": "help@company.com",
        "contact_phone": "+48 22 123 45 67",
        "contact_text": "Need help?"
      }
    }
  }'
```

### Through Rails Console

```ruby
kb = Kb::KnowledgeBase.find(ID)
kb.fields["contact_email"] = "help@company.com"
kb.fields["contact_phone"] = "+48 22 123 45 67"
kb.fields["contact_text"] = "Need help?"
kb.save!
```

## Appearance

If any of the fields are filled, a contact section will appear in the footer:

- Email is displayed with an envelope icon and is clickable (mailto)
- Phone is displayed with a handset icon and is clickable (tel)
- Helper text is displayed above the contact data

If no field is set, the footer remains unchanged (only copyright and "Powered by Sugester").