[LON-CAPA-users] default maxtries and hinttries
Mills, Douglas G
dmills at illinois.edu
Wed Jul 10 17:42:48 EDT 2013
I believe that what you'll want to use "&EXT('resource.partid.maxtries')" with the actual partid in place of "partid". I think that to accomplish what you're proposing to do, you'll need to set a variable in the PERL equal to the maxtries and then use that variable inside your problem, so
$maxtriespart11 = &EXT('resource.11.maxtries')
<responseparam name="hinttries" default="$maxtriespart11" />
Director of Instructional Technologies
Department of Chemistry
University of Illinois
dmills at illinois.edu<mailto:dmills at illinois.edu>
From: Carl Lira <lira at egr.msu.edu<mailto:lira at egr.msu.edu>>
Reply-To: Discussion list for LON-CAPA users <lon-capa-users at mail.lon-capa.org<mailto:lon-capa-users at mail.lon-capa.org>>
Date: Wednesday, July 10, 2013 4:28 PM
To: "lon-capa-users at mail.lon-capa.org<mailto:lon-capa-users at mail.lon-capa.org>" <lon-capa-users at mail.lon-capa.org<mailto:lon-capa-users at mail.lon-capa.org>>
Subject: [LON-CAPA-users] default maxtries and hinttries
I am authoring some multipart problems, and I would like to have the correct answer displayed as the ‘hint’ after maxtries, so I would like the value of ‘hinttries’ to default to the value of ‘maxtries’.
1) In searching some of the listserv archives, it appears that I can use the &EXT function to retrieve the current value of maxtries, but I need some help with the syntax.
2) Also, has anyone tried to do this in the problem part?
<responseparam name="hinttries" default=&EXT(whatever needed from my first question to get maxtries) />
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the LON-CAPA-users