Vor Kurzem aufgerufene Suchen
Keine vor kurzem aufgerufene Suchen

Serhii Danchuk
Beigetreten 29. Dez. 2021
·
Letzte Aktivität 12. Jan. 2022
Folge ich
0
Follower
0
Gesamtaktivitäten
12
Stimmen
6
Abonnement
1
AKTIVITÄTSÜBERSICHT
BADGES
BEITRÄGE
POSTS
COMMUNITY-KOMMENTARE
BEITRAGSKOMMENTARE
AKTIVITÄTSÜBERSICHT
Neueste Aktivität von Serhii Danchuk
Serhii Danchuk hat einen Kommentar hinterlassen
Daniel Dobrzensky Thank you very much it worked!)
Kommentar anzeigen · Gepostet 11. Jan. 2022 · Serhii Danchuk
0
Follower
1
Stimme
0
Kommentare
Serhii Danchuk hat einen Kommentar hinterlassen
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:(
Kommentar anzeigen · Gepostet 02. Jan. 2022 · Serhii Danchuk
0
Follower
0
Stimmen
0
Kommentare
Serhii Danchuk hat einen Kommentar hinterlassen
Yes, I want to show only the category that I kept in the template settings.
Kommentar anzeigen · Gepostet 30. Dez. 2021 · Serhii Danchuk
0
Follower
1
Stimme
0
Kommentare
Serhii Danchuk hat einen Kommentar hinterlassen
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}}
Kommentar anzeigen · Gepostet 30. Dez. 2021 · Serhii Danchuk
0
Follower
1
Stimme
0
Kommentare
Serhii Danchuk hat einen Post erstellt
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
Gepostet 29. Dez. 2021 · Serhii Danchuk
1
Follower
5
Stimmen
15
Kommentare