WeBWorK Problems

Adding Questions and button to Problem Library

Adding Questions and button to Problem Library

by Kelsey Caron -
Number of replies: 4

Hello,

I followed to documentation to set up a question bank and the button to go along with it.

I placed the directory 'newQuestions' with the questions in /opt/webwork/libraries/

Then I went to the location /opt/webwork/courses/modelCourse/templates 

I entered this command: 

ln -s /opt/webwork/libraries/newQuestions/NewQuestionBank NewQuestionBank

After that, I went into my localOverrides.conf file and added:

$courseFiles{problibs}    = {

        Library          => "OPL Directory",

        #capaLibrary      => "CAPA",

        Contrib          => "Contrib",

        NewQuestionBank => "NewQuestions",

# the following are not really needed but you can

# create links to your own private libraries this way.

        #rochesterLibrary => "Rochester",

        #unionLibrary     => "Union",

        #asuLibrary       => "Arizona State",

        #dcdsLibrary      => "Detroit CDS",

        #dartmouthLibrary => "Dartmouth",

        #indianaLibrary   => "Indiana",

        #osuLibrary       => "Ohio State",

};



The button does not appear. Could someone please tell me if I am missing a step?

In reply to Kelsey Caron

Re: Adding Questions and button to Problem Library

by Arnold Pizer -

If I understand you correctly, you want

ln -s /opt/webwork/libraries/newQuestions  NewQuestionBank

not

ln -s /opt/webwork/libraries/newQuestions/NewQuestionBank NewQuestionBank

In reply to Kelsey Caron

Re: Adding Questions and button to Problem Library

by Kelsey Caron -
Thank you. I figured out why the buttons were not getting created. 

If you're adding a directory of new questions to the library. Any previous course pages will not get the button updates. But new course pages that are created will have the buttons. Not sure why it doesn't get updated on already created course pages. 



In reply to Kelsey Caron

Re: Adding Questions and button to Problem Library

by Arnold Pizer -

You added a link to the model course and the link is copied over to a new course when it is created.  That's why NEW courses have the button. If you want an old course to have the button, all you have to do is to add the link (use exactly the same command) to the templates directory of the old course.

In reply to Arnold Pizer

Re: Adding Questions and button to Problem Library

by Kelsey Caron -

Thanks Arnold for better insight. That makes total sense. Still just learning out here haha.