Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Add Course Level Drip & Prerequisite Settings #521
I feel that while fetching any settings in code, there should be a hierarchy that bubbles the default settings from narrow (lesson, quiz, etc) to broad (section, course, etc) to global (sitewide) scope.
This prepares a framework which LifterLMS could internally extend to display a couple of settings like drip & pre-requisite by default and allow other addons or custom code to do so for any of the settings.
Similar to the model of content privacy in a BuddyPress Group where a post is visible to just the author, the group or across the whole site.
Same way, the pre-requisite and drip settings can be set sitewide (in an abstract way, if not visibly) for all the courses on a particular site, at the level of a course, section and deeper.
At every deeper level, you could override the previous level's setting without disturbing the settings for siblings which would fallback to the parent node.
This would be easier to do IMHO that specifically working with a particular setting.