add-on conf files#3000
Open
Alex-Jordan wants to merge 1 commit into
Open
Conversation
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

This allows for there to be a folder
webwork2/conf/addon/(or some other name, overridden inlocalOverrides.conf) where you can store.conffiles. This has to do with #2999.When adding a new course from the admin course, you can select one or more of these config files to be included at the end of the new course's
course.conffile. If the new course is copying acourse.conffile from some other course, nothing happens with.conffiles from theaddonfolder.If there is no
addonfolder, or if it has no.conffiles in it, there is no change in the Add Course page. Otherwise, the checkbox for copying an old course'scourse.conffile is gone, and there is one select. The select has three optgroups:course.conffile. This is also what will happen if the form is submitted with no selection made.course.conffile from the indicated older course..conffiles from theaddonfolder.The select allows multiple selections. This needs one more thing where I need javascript help from @drgrice1. If the option from the first or second optgroup is selected, all other options need to be de-selected. Googling, I see how to do this with javascript. But I'm not sure where to build that javascript properly for its use here. That is, I'm not sure what I should do instead of writing inline script.