Ricerche recenti


Nessuna ricerca recente

Serhii Danchuk's Avatar

Serhii Danchuk

Data ingresso 29 dic 2021

·

Ultima attività 12 gen 2022

Seguiti

0

Follower

0

Attività totali

12

Voti

6

Abbonamento

1

PANORAMICA ATTIVITÀ

Ultima attività di Serhii Danchuk

Serhii Danchuk ha commentato,

Commento nella community Q&A - Help center and community

Daniel Dobrzensky Thank you very much it worked!)

Visualizza commento · Data ultimo post: 11 gen 2022 · Serhii Danchuk

0

Follower

1

Voto

0

Commenti


Serhii Danchuk ha commentato,

Commento nella community 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:( 

Visualizza commento · Data ultimo post: 02 gen 2022 · Serhii Danchuk

0

Follower

0

Voti

0

Commenti


Serhii Danchuk ha commentato,

Commento nella community Q&A - Help center and community

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

Visualizza commento · Data ultimo post: 30 dic 2021 · Serhii Danchuk

0

Follower

1

Voto

0

Commenti


Serhii Danchuk ha commentato,

Commento nella community 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}}


 

Visualizza commento · Data ultimo post: 30 dic 2021 · Serhii Danchuk

0

Follower

1

Voto

0

Commenti


Serhii Danchuk ha creato un post,

Post 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

Data ultimo post: 29 dic 2021 · Serhii Danchuk

1

Follower

5

Voti

15

Commenti