Adds a STACK library page available from the question edit form when creating a new question. Questions are now within a stacklibrary folder within sample questions so we have a neat selection of single question files.
The page renders the question text of a selected question using the API code. Clicking 'Import' imports the question into the course the user is currently in. If they started from a particular category in the question bank, it will go in there.
Renders and the file structure are cached using Moodle caching.
API sample front end updated to show everything within the samplequestions folder as it can already handle files with multiple questions.
Adds a STACK library page available from the question edit form when creating a new question. Questions are now within a stacklibrary folder within sample questions so we have a neat selection of single question files.
The page renders the question text of a selected question using the API code. Clicking 'Import' imports the question into the course the user is currently in. If they started from a particular category in the question bank, it will go in there.
Renders and the file structure are cached using Moodle caching.
API sample front end updated to show everything within the samplequestions folder as it can already handle files with multiple questions.