4.0.0 - How to Create Menu tree using - blc_cms_menu_item
Posted: Wed Jul 08, 2015 4:32 pm
Hi,
So,I am trying to migrate to 4.0.0 and working around the Menu. So, as I see, the menu is now being changed to be generated from CMS_menu table.
In blc_cms_menu_item, how to I create the category - sub-cateogry tree, to be shown as menu on UI, like it was in previous version, where i just need to add them to blc-category table.
So, if I want to do this :-
Home and Shop by category is created by this :-
INSERT INTO BLC_CMS_MENU_ITEM (MENU_ITEM_ID, PARENT_MENU_ID, SEQUENCE, MENU_ITEM_TYPE, ACTION_URL, LABEL) VALUES (1, 1, 1, 'CATEGORY', '/', 'Home');
INSERT INTO BLC_CMS_MENU_ITEM (MENU_ITEM_ID, PARENT_MENU_ID, SEQUENCE, MENU_ITEM_TYPE, ACTION_URL, LABEL) VALUES (2, 1, 2, 'CATEGORY', '/shop-by-category', 'Shop by Category');
But, now I want to add several other child categories to "Shop by category", inorder to show a dropdown menu on homepage.
Eg :- Shop By Category
- Electronics ( cat id - 111)
- - Mobile ( cat id - 222)
- - - - Samsung ( cat id -333)
Now, what values should go in BLC_CMS_MENU_ITEM or Is my old "Blc_category" still works for getting the Menu tree ?
Thanks in advance.
- Sumit
So,I am trying to migrate to 4.0.0 and working around the Menu. So, as I see, the menu is now being changed to be generated from CMS_menu table.
In blc_cms_menu_item, how to I create the category - sub-cateogry tree, to be shown as menu on UI, like it was in previous version, where i just need to add them to blc-category table.
So, if I want to do this :-
Home and Shop by category is created by this :-
INSERT INTO BLC_CMS_MENU_ITEM (MENU_ITEM_ID, PARENT_MENU_ID, SEQUENCE, MENU_ITEM_TYPE, ACTION_URL, LABEL) VALUES (1, 1, 1, 'CATEGORY', '/', 'Home');
INSERT INTO BLC_CMS_MENU_ITEM (MENU_ITEM_ID, PARENT_MENU_ID, SEQUENCE, MENU_ITEM_TYPE, ACTION_URL, LABEL) VALUES (2, 1, 2, 'CATEGORY', '/shop-by-category', 'Shop by Category');
But, now I want to add several other child categories to "Shop by category", inorder to show a dropdown menu on homepage.
Eg :- Shop By Category
- Electronics ( cat id - 111)
- - Mobile ( cat id - 222)
- - - - Samsung ( cat id -333)
Now, what values should go in BLC_CMS_MENU_ITEM or Is my old "Blc_category" still works for getting the Menu tree ?
Thanks in advance.
- Sumit