I'm trying to create a left menu like the category one in a custom module to display my own hierarchy. I want to use a custom model from a custom table.

enter image description here

I was able to get the category tree in my module by adding the following files :

  • vendor/magento/module-catalog/view/adminhtml/templates/tree.phtml
  • Magento\Catalog\Block\Adminhtml\Category\Tree.php

Now I want to edit the content and I can't find how. I tried to modify the getSuggestedCategoriesJson() method with no success.

Can anyone help me?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.