template.js conditionals doesn't work
audreybest last edited by
How can I use the conditionals if I want to compare the value.
<!-- IF (categories.parentCid == selectedCategory.cid) -->
It does't work now.
@audreybest you can't. You'll have to use a helper or do that logic elsewhere. Maybe there's a
category.isSelectedboolean that already reflects if the category is the selected one?
audreybest last edited by audreybest
@PitaJ Thanks for your reply. I wanted the case, if the subcategory is selected then parent category also selected.
But now if the subcategories selected, then parent categories.isSelected = false.
Maybe I should do a plugin?