Liquid error: Unable to cast object of type 'System.Int32' to type 'System.String'
Liquid error: Unable to cast object of type 'System.Int32' to type 'System.String'
我在 Liquid Web 模板中使用 AdxStudio 时遇到这个错误。
流动性错误:无法将类型 'System.Int32' 的对象转换为类型 'System.String'。
我的代码如下:
<div>Posts count: {{website.forums[1].threads[0].posts.post_count}}</div>
谢谢。
请试试这个:
计数特定论坛帖子:
<div>Posts count: {{website.forums[1].post_count}}</div>
计算特定论坛的特定线程数:
<div>Posts count: {{website.forums[1].threads.all[0].post_count}}</div>
我在 Liquid Web 模板中使用 AdxStudio 时遇到这个错误。
流动性错误:无法将类型 'System.Int32' 的对象转换为类型 'System.String'。
我的代码如下:
<div>Posts count: {{website.forums[1].threads[0].posts.post_count}}</div>
谢谢。
请试试这个:
计数特定论坛帖子:
<div>Posts count: {{website.forums[1].post_count}}</div>
计算特定论坛的特定线程数:
<div>Posts count: {{website.forums[1].threads.all[0].post_count}}</div>