Búsquedas recientes


No hay búsquedas recientes

Serhii Danchuk's Avatar

Serhii Danchuk

Incorporación 29 dic 2021

·

Última actividad 12 ene 2022

Seguimientos

0

Seguidores

0

Actividad total

12

Votos

6

Suscripción

1

RESUMEN DE LA ACTIVIDAD

Última actividad de Serhii Danchuk

Serhii Danchuk hizo un comentario,

Comentario de la comunidad Q&A - Help center and community

Daniel Dobrzensky Thank you very much it worked!)

Ver comentario · Publicado 11 ene 2022 · Serhii Danchuk

0

Seguidores

1

Voto

0

Comentarios


Serhii Danchuk hizo un comentario,

Comentario de la comunidad 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:( 

Ver comentario · Publicado 02 ene 2022 · Serhii Danchuk

0

Seguidores

0

Votos

0

Comentarios


Serhii Danchuk hizo un comentario,

Comentario de la comunidad Q&A - Help center and community

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

Ver comentario · Publicado 30 dic 2021 · Serhii Danchuk

0

Seguidores

1

Voto

0

Comentarios


Serhii Danchuk hizo un comentario,

Comentario de la comunidad 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}}


 

Ver comentario · Publicado 30 dic 2021 · Serhii Danchuk

0

Seguidores

1

Voto

0

Comentarios


Serhii Danchuk creó una publicación,

Publicación 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 dic 2021 · Serhii Danchuk

1

Seguidor

5

Votos

15

Comentarios