Moodle 4 extend navigation

Re: Moodle 4 extend navigation

Bởi Thomas Kroh -
Số lượng các câu trả lời: 1
Hi Gem,

I thank you soooo much, that did the job cười Perhaps I find some time to study the navigationlib and find out what changed in the API and why the custom hooks don't work anymore like before.
Have a nice day!

all the best from Salzburg / Austria,
Tom
Để phản hồi tới Thomas Kroh

Re: Moodle 4 extend navigation

Bởi Tyler Bannister -
Hình của Core developers Hình của Plugin developers

It looks like the custom hooks don't work in Boost because they are not used (at all) for the top menu.  The navigation block was deemed unnecessary, but none of that functionality was moved to the new top menu.  It doesn't use the navigation object to render the top navigation.  The new top menu is only the three hard coded links and whatever is specified in the theme settings for "custommenuitems".

The old hooks should continue to work in classic, but they seem to have no effect on the primary navigation in Moodle 4.

Trung bình điểm đánh giá:Useful (1)