moodle-an-hochschulen / moodle-theme_boost_union_child

Boost Union Child is a boilerplate for enhancing Boost Union with custom or local functionality
GNU General Public License v3.0
2 stars 1 forks source link

grandchild of boost union, child of the boost_union_child, to control their own settings #2

Open twjn opened 7 months ago

twjn commented 7 months ago

I want each grandchild of boost union, child of the boost_union_child, to control their own settings but instead I get a grandchild listing underneath the boost_union_child, like so:

image

In the image QA is the grandchild.

So if i change any of the settings in the grandchild it also changes the settings in the boost_union_child.

How do I move the grandchild up one level so it can control just its own settings?

Thankyou.

abias commented 6 months ago

Hi @twjn ,

thanks for asking.

We placed the Boost Union Child settings as a subpage of the Boost Union setting by purpose to make clear that Boost Union Child's settings are an addition to the Boost Union settings.

This placement is happening here: https://github.com/moodle-an-hochschulen/moodle-theme_boost_union_child/blob/master/settings.php#L117-L118

If you want your Boost Union Child settings to present a settings page on its own, you could have a look at Boost's settings page on https://github.com/moodle/moodle/blob/main/theme/boost/settings.php and re-build the Boost Union Child page in a similar way.

However, I have to say that this approach is out of scope of what we tried to provide with Boost Union Child so we can't provide much more support, I am afraid.

I will just leave this issue open for some more time in case someone from the community wants to discuss more about this approach.

Cheers, Alex