I stock with a navigation + tailor issue that I can’t find solution for.
I build a tailor model ‘People’- everything works perfect. I have an old plugin ‘Testimonials’ build as a standard plugin, with just one menu entry (testimonials/testimonials), which I would like to display on the tailor automatically created menu.
To visualise:
Main primary menu ‘People’
Site menu: ‘People’ (tailor)
Site menu: ‘People Categories’ (tailor)
Site menu: ’Testimonials’ (standard plugin)
I created ‘extraNavigation’ in the ‘People’ tailor config yaml file like this:
extraNavigation:
testimonials:
itemType: link
label: Testimonials
url: testimonials/testimonials
icon: icon-group
permissions:
- manage
order: 210
The menu ‘Testimonials’ apears and works, but after clicking on it, the site menu disappears. I know I need to add to Testimonials Controller in the constructor a line like:
BackendMenu::setContext('People', 'entry_people_person','testimonials’);
but can’t figure out how to configure the parameters of the setContext function to work with the Tailor. Is it even possible?
I would be grateful for your help.