Skip to content
Sugester V2 EN

Contact information in the footer (Syntax template)

Updated at: 1 min read

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:

Field Description Example
contact_email Email address with mailto link help@company.com
contact_phone Phone number with tel link +48 22 123 45 67
contact_text Helper text above the data Need help?

How to Set

Through API

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

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”).

Was this entry helpful?

Share

Comments