Squarespace开发人员平台中的商业信息(Business Information in Squarespace Developer Platform)

编程入门 行业动态 更新时间:2024-10-15 14:18:58
Squarespace开发人员平台中的商业信息(Business Information in Squarespace Developer Platform)

如何访问设置中找到的信息? 似乎没有任何文件。 我能够得到以下工作:

{.section location} <p class="text-center"> {.if addressLine1}{addressLine1}<br>{.end} {.if addressLine2}{addressLine2}<br>{.end} {.if websiteSettings.contactPhoneNumber}{websiteSettings.contactPhoneNumber}{.end} </p> {.end}

但是你怎么访问:

商家名称 联系电子邮件 等等

How does one access the information found in settings? There doesn't seem to be any documentation. I'm able to get the following to work:

{.section location} <p class="text-center"> {.if addressLine1}{addressLine1}<br>{.end} {.if addressLine2}{addressLine2}<br>{.end} {.if websiteSettings.contactPhoneNumber}{websiteSettings.contactPhoneNumber}{.end} </p> {.end}

But how do you access:

Business Name Contact Email etc.

最满意答案

您可以在“网站设置”范围内找到公司名称,联系电子邮件和其他类似设置。 在某些情况下,此类数据会在“storeSettings”中进一步嵌套。

请参阅以下示例Squarespace站点,使用参数format=json-pretty显示为JSON( 请参阅docs )。

https://websitesettings.squarespace.com/?format=json-pretty

在该链接中,您将能够看到公司名称和联系电子邮件(分别是“ 嘿,这是我的公司名称 ”和“ mycontactemail@mybusiness.com ”)。 在浏览器中使用CTRL + F在页面上搜索这两个术语中的任何一个,您将在各自的范围内找到它们。

在后端,这两条信息在“设置>商业信息”下输入。

因此,在Squarespace .region,.block,.list或.item文件中,您可以执行以下操作:

{.section websiteSettings} {contactEmail} {.section storeSettings} {businessName} {.end} {.end}

You will find business name, contact email and other similar settings within the 'websiteSettings' scope. In some cases, such data is nested further within 'storeSettings'.

See the following example Squarespace site, displayed as JSON using the parameter format=json-pretty (see docs).

https://websitesettings.squarespace.com/?format=json-pretty

At that link, you will be able to see the business name and contact email ("Hey, It's My Business Name" and "mycontactemail@mybusiness.com" respectively). Use CTRL + F in your browser to search for either of those two terms on the page and you will find them within their respective scopes.

On the back-end, the two pieces of information were entered under 'Settings > Business Information'.

So, within a Squarespace .region, .block, .list or .item file, you would do something like this:

{.section websiteSettings} {contactEmail} {.section storeSettings} {businessName} {.end} {.end}

更多推荐

本文发布于:2023-08-07 02:34:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1459402.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:开发人员   商业信息   平台   Squarespace   Platform

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!