Recherches récentes


Pas de recherche récente

Serhii Danchuk's Avatar

Serhii Danchuk

Adhésion le 29 déc. 2021

·

Dernière activité le 12 janv. 2022

Suivis

0

Abonnés

0

Activité totale

12

Votes

6

Abonnement

1

APERÇU DES ACTIVITÉS

Dernière activité effectuée par Serhii Danchuk

Serhii Danchuk a ajouté un commentaire,

Commentaire de la communauté Q&A - Help center and community

Daniel Dobrzensky Thank you very much it worked!)

Afficher le commentaire · Publication le 11 janv. 2022 · Serhii Danchuk

0

Abonnés

1

vote

0

Commentaire


Serhii Danchuk a ajouté un commentaire,

Commentaire de la communauté 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:( 

Afficher le commentaire · Publication le 02 janv. 2022 · Serhii Danchuk

0

Abonnés

0

Votes

0

Commentaire


Serhii Danchuk a ajouté un commentaire,

Commentaire de la communauté Q&A - Help center and community

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

Afficher le commentaire · Publication le 30 déc. 2021 · Serhii Danchuk

0

Abonnés

1

vote

0

Commentaire


Serhii Danchuk a ajouté un commentaire,

Commentaire de la communauté 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}}


 

Afficher le commentaire · Publication le 30 déc. 2021 · Serhii Danchuk

0

Abonnés

1

vote

0

Commentaire


Serhii Danchuk a créé une publication,

Publication 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

Publication le 29 déc. 2021 · Serhii Danchuk

1

Abonné

5

Votes

15

Commentaires