Pesquisas recentes


Sem pesquisas recentes

Serhii Danchuk's Avatar

Serhii Danchuk

Entrou em 29 de dez. de 2021

·

Última atividade em 12 de jan. de 2022

Seguindo

0

Seguidores

0

Atividade total

12

Votos

6

Assinatura

1

VISÃO GERAL DA ATIVIDADE

Atividade mais recente por Serhii Danchuk

Serhii Danchuk comentou,

Comentário na comunidade Q&A - Help center and community

Daniel Dobrzensky Thank you very much it worked!)

Exibir comentário · Publicado 11 de jan. de 2022 · Serhii Danchuk

0

Seguidores

1

Votos

0

Comentários


Serhii Danchuk comentou,

Comentário na comunidade Q&A - Help center and community

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:( 

Exibir comentário · Publicado 02 de jan. de 2022 · Serhii Danchuk

0

Seguidores

0

Votos

0

Comentários


Serhii Danchuk comentou,

Comentário na comunidade Q&A - Help center and community

Yes, I want to show only the category that I kept in the template settings.

Exibir comentário · Publicado 30 de dez. de 2021 · Serhii Danchuk

0

Seguidores

1

Votos

0

Comentários


Serhii Danchuk comentou,

Comentário na comunidade Q&A - Help center and community

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}}


 

Exibir comentário · Publicado 30 de dez. de 2021 · Serhii Danchuk

0

Seguidores

1

Votos

0

Comentários


Serhii Danchuk criou uma publicação,

Publicação Q&A - Help center and community

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

Publicado 29 de dez. de 2021 · Serhii Danchuk

1

Seguidor

5

Votos

15

Comentários