Hierarchical Menu #5141
Unanswered
trioangle27
asked this question in
General
Replies: 2 comments 1 reply
-
Hierarchical Menu only works on text. You will have to somehow create a mapping first: const mapping = {
Audio: 'https://...',
'Audio > Headphones': 'https://...',
};
// this can then be used in a custom rendering
const image = mapping[item.label] This mapping can be created in many ways, one among which is a javascript object |
Beta Was this translation helpful? Give feedback.
0 replies
-
thank you for response..
How to create mapping for algolia instatsearch.js
i am using code:
instantsearch.widgets.hierarchicalMenu({
container: '#header_category_image_algo',
attributes: [
'hierarchicalCategories.lvl0',
'hierarchicalCategories.lvl1',
'hierarchicalCategories.lvl2',
'hierarchicalCategories.lvl3',
],
});
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
i am using hierarchical-menu option.to me category image and category title It should be a show.But now current category title or category image only showing.but category image and title it should be show.
Beta Was this translation helpful? Give feedback.
All reactions