WeBWorK Main Forum

Possible to edit blankproblem.pg

Possible to edit blankproblem.pg

by James Mc Laughlin -
Number of replies: 1

Whenever I want to add my own problems to a homework set, like most people I use the 

" Add [ ] blank problem template(s) to end of homework set" 

in the homework editor.


This adds however many copies I requested of

blankProblem.pg to the end of the homework set.

Currently, this is a very basic problem ("Enter a value for Pi").

What I was wondering is if it is possible to edit blankProblem.pg wherever it is stored, so that it comes preloaded with more options, so that when I add it to a homework set, it is my own personal version of blankProblem.pg?  



In reply to James Mc Laughlin

Re: Possible to edit blankproblem.pg

by Arnold Pizer -
Hi,

You can edit this for your system or an individual course but you need access to the server.
In the directory

/opt/webwork/webwork2/conf/snippets/

you will also see there are problems blankProblem.pg and blankProblem2.pg.

In defaults.config there is a setting that points to blankProblem2.pg so this can easily be changed for individual courses. Note that this means by default courses use blankProblem2.pg.

You can add e.g. blankProblem3.pg and then in the localOverrides.conf file point to this if you want to use the new template for all courses. If you want to use it only for individual courses, add the line to the course's course.conf file.