最近搜索
没有最近搜索

Serhii Danchuk
已加入2021年12月29日
·
最后活动2022年1月12日
关注
0
关注者
0
活动总数
12
投票
6
订阅
1
活动概览
标记
文章
帖子
社区评论
文章评论
活动概览
的最新活动 Serhii Danchuk
Serhii Danchuk 进行了评论,
Daniel Dobrzensky Thank you very much it worked!)
查看评论 · 已于 2022年1月11日 发布 · Serhii Danchuk
0
关注者
1
投票
0
评论
Serhii Danchuk 进行了评论,
Thanks for the help! Option 2 suits me and I tried to do it earlier. But I tried these options and they don't work. It is work:
{{#if categories}}
{{#each categories}}
{{#if (compare "4409347111442" "==" ../settings.category_first)}}
ok
{{/if}}
{{/each}}
{{/if}}
But i need dynamic id and try this(your option 2):
{{#if categories}}
{{#each categories}}
{{#if (compare "id" "==" ../settings.category_first)}}
ok
{{/if}}
{{/each}}
{{/if}}
and this
{{#if categories}}
{{#each categories}}
{{#if (compare "id" "=" ../settings.category_first)}}
ok
{{/if}}
{{/each}}
{{/if}}
and this
{{#if categories}}
{{#each categories}}
{{#if (compare id "==" ../settings.category_first)}}
ok
{{/if}}
{{/each}}
{{/if}}
and this
{{#if categories}}
{{#each categories}}
{{#if (compare id "=" ../settings.category_first)}}
ok
{{/if}}
{{/each}}
{{/if}}
and this
{{#if (compare category.id "==" ../settings.category_first)}}
ok
{{/if}}
it is not work for me, maybe I'm doing something wrong?
i read documentation and i not find answer for my question:(
查看评论 · 已于 2022年1月02日 发布 · Serhii Danchuk
0
关注者
0
投票
0
评论
Serhii Danchuk 进行了评论,
Thanks, but I would like to use the dynamic id that is take from the category and compare with the settings value.
Like this:
{{#if categories}}
{{#each categories}}
{{#is ../settings.category_first "dynamic category.id" }}
{{some code to render when true}}
{{/is}}
{{/each}}
{{/if}}
查看评论 · 已于 2021年12月30日 发布 · Serhii Danchuk
0
关注者
1
投票
0
评论
Serhii Danchuk 创建了一个帖子,
Hi Zendesk.
I wont to show category by id. I add to setting category.id
and i wont to show this category by id, but helper "is" not work width settings.
I also tried other helpers but they don't work the way I need.
How can i show categories by id from settings?
Thank you.
Serhii Danchuk
已于 2021年12月29日 发布 · Serhii Danchuk
1
关注者
5
投票
15
评论