说明:用于获取后台配置的联系方式信息
使用方法:{% contact 变量名称 with name="字段名称" %}
,变量名称不是必须的,设置了变量名称后,后续可以通过变量名称来调用,而不设置变量名称,则是直接输出结果。
siteId
siteId
一般不需要填写,如果你使用后台的多站点管理创建了多个站点,并且想调用其他站点的数据,则可以通过指定 siteId
来实现调用指定站点的数据。UserName
Cellphone
Address
Email
Wechat
Qrcode
QQ
WhatsApp
Facebook
Twitter
Tiktok
Pinterest
Linkedin
Instagram
Youtube
后台自定义设置的参数名
UserName
标签用法:{% contact with name="UserName" %}
{# 默认用法 #}
<li>
<span>联系人</span>
<span>{% contact with name="UserName" %}</span>
</li>
{# 自定义名称调用 #}
<li>
<span>联系人</span>
<span>{% contact userName with name="UserName" %}{{userName}}</span>
</li>
Cellphone
标签用法:{% contact with name="Cellphone" %}
{# 默认用法 #}
<li>
<span>联系电话</span>
<span>{% contact with name="Cellphone" %}</span>
</li>
{# 自定义名称调用 #}
<li>
<span>联系电话</span>
<span>{% contact cellphone with name="Cellphone" %}{{cellphone}}</span>
</li>
Address
标签用法:{% contact with name="Address" %}
{# 默认用法 #}
<li>
<span>联系地址</span>
<span>{% contact with name="Address" %}</span>
</li>
{# 自定义名称调用 #}
<li>
<span>联系地址</span>
<span>{% contact address with name="Address" %}{{address}}</span>
</li>
Email
标签用法:{% contact with name="Email" %}
{# 默认用法 #}
<li>
<span>联系邮箱</span>
<span>{% contact with name="Email" %}</span>
</li>
{# 自定义名称调用 #}
<li>
<span>联系邮箱</span>
<span>{% contact contactEmail with name="Email" %}{{contactEmail}}</span>
</li>
Wechat
标签用法:{% contact with name="Wechat" %}
{# 默认用法 #}
<li>
<span>联系微信</span>
<span>{% contact with name="Wechat" %}</span>
</li>
{# 自定义名称调用 #}
<li>
<span>联系微信</span>
<span>{% contact contactWechat with name="Wechat" %}{{contactWechat}}</span>
</li>
Qrcode
标签用法:{% contact with name="Qrcode" %}
{# 默认用法 #}
<li>
<span>微信二维码</span>
<span>
<img src="{% contact with name="Qrcode" %}" />
</span>
</li>
{# 自定义名称调用 #}
<li>
<span>微信二维码</span>
<span>
<img src="{% contact qrcode with name="Qrcode" %}{{qrcode|safe}}" />
</span>
</li>
QQ
标签用法:{% contact with name="QQ" %}
{# 默认用法 #}
<li>
<span>联系QQ</span>
<span>{% contact with name="QQ" %}</span>
</li>
{# 自定义名称调用 #}
<li>
<span>联系QQ</span>
<span>{% contact contactQQ with name="QQ" %}{{contactQQ}}</span>
</li>
WhatsApp
标签用法:{% contact with name="WhatsApp" %}
{# 默认用法 #}
<li>
<span>联系WhatsApp</span>
<span>{% contact with name="WhatsApp" %}</span>
</li>
{# 自定义名称调用 #}
<li>
<span>联系WhatsApp</span>
<span>{% contact contactWhatsApp with name="WhatsApp" %}{{contactWhatsApp}}</span>
</li>
Facebook
标签用法:{% contact with name="Facebook" %}
{# 默认用法 #}
<li>
<span>联系Facebook</span>
<span>{% contact with name="Facebook" %}</span>
</li>
{# 自定义名称调用 #}
<li>
<span>联系Facebook</span>
<span>{% contact contactFacebook with name="Facebook" %}{{contactFacebook}}</span>
</li>
Twitter
标签用法:{% contact with name="Twitter" %}
{# 默认用法 #}
<li>
<span>联系Twitter</span>
<span>{% contact with name="Twitter" %}</span>
</li>
{# 自定义名称调用 #}
<li>
<span>联系Twitter</span>
<span>{% contact contactTwitter with name="Twitter" %}{{contactTwitter}}</span>
</li>
Tiktok
标签用法:{% contact with name="Tiktok" %}
{# 默认用法 #}
<li>
<span>联系Tiktok</span>
<span>{% contact with name="Tiktok" %}</span>
</li>
{# 自定义名称调用 #}
<li>
<span>联系Tiktok</span>
<span>{% contact contactTiktok with name="Tiktok" %}{{contactTiktok}}</span>
</li>
Pinterest
标签用法:{% contact with name="Pinterest" %}
{# 默认用法 #}
<li>
<span>联系Pinterest</span>
<span>{% contact with name="Pinterest" %}</span>
</li>
{# 自定义名称调用 #}
<li>
<span>联系Pinterest</span>
<span>{% contact contactPinterest with name="Pinterest" %}{{contactPinterest}}</span>
</li>
Linkedin
标签用法:{% contact with name="Linkedin" %}
{# 默认用法 #}
<li>
<span>联系Linkedin</span>
<span>{% contact with name="Linkedin" %}</span>
</li>
{# 自定义名称调用 #}
<li>
<span>联系Linkedin</span>
<span>{% contact contactLinkedin with name="Linkedin" %}{{contactLinkedin}}</span>
</li>
Instagram
标签用法:{% contact with name="Instagram" %}
{# 默认用法 #}
<li>
<span>联系Instagram</span>
<span>{% contact with name="Instagram" %}</span>
</li>
{# 自定义名称调用 #}
<li>
<span>联系Instagram</span>
<span>{% contact contactInstagram with name="Instagram" %}{{contactInstagram}}</span>
</li>
Youtube
标签用法:{% contact with name="Youtube" %}
{# 默认用法 #}
<li>
<span>联系Youtube</span>
<span>{% contact with name="Youtube" %}</span>
</li>
{# 自定义名称调用 #}
<li>
<span>联系Youtube</span>
<span>{% contact contactYoutube with name="Youtube" %}{{contactYoutube}}</span>
</li>