Doug, Lucas, and Justin, Thank you very much for your reply. This is exactly what I wanted, and will employ, for problems that I code. What can be done for problems that others have authored?
Thanks Itay On Mon, 5 Mar 2018, at 23:08, Justin Gray wrote: > Here is a sample problem that uses a block for after solved: > > <problem><startouttext />Enter the correct answer 42 to see the hidden > text or image:<endouttext />> <numericalresponse answer="42"> > > > <textline readonly="no" spellcheck="none" /> > > </numericalresponse> > > <solved> > <img encrypturl="no" /><startouttext > /><p>Hooray!</p><endouttext />> </solved> > </problem> > > Note that the solution could be, for example, a text/HTML block or > an image.> > Justin > > > Justin Gray | Senior Lecturer > Department of Mathematics | Simon Fraser University > 8888 University Drive, Burnaby | V5A 1S6 | Canada > Tel: +1 778.782.4237 > > > > On Mon, Mar 5, 2018 at 1:03 PM, Mills, Douglas G > <dmi...@illinois.edu> wrote:>> HI Itay,____ >> __ __ >> There these very handy "Blocks" you can insert in your problem code >> and I think the "postanswerdate" block will do what you want, but I'm >> including all four that can be found from the Insert menu on the >> "colorful" editor. I would describe these as predefined conditionals >> so the postanswerdate pair, for example, will only display what is >> within the opening and closing tags after the answer has become >> available. If you put your link to a solution PDF inside a pair of >> postanswerdate tags, that should do what you're looking for. The >> others work analogously I believe.____>> __ __ >> <postanswerdate></postanswerdate>____ >> <preduedate></preduedate>____ >> <solved></solved>____ >> <notsolved></notsolved>____ >> __ __ >> __ __ >> __ __ >> Doug____ >> __ __ >> Douglas Mills____ >> Director of Instructional Technology____ >> Department of Chemistry____ >> University of Illinois____ >> __ __ >> __ __ >> *From: *LON-CAPA-users <lon-capa-users-boun...@mail.lon-capa.org> on >> behalf of Itay <it...@nospammail.net> *Reply-To: *Discussion list for >> LON-CAPA users <lon-capa-users@mail.lon-capa.org> *Date: *Monday, >> March 5, 2018 at 2:34 PM *To: *Discussion list for LON-CAPA users >> <lon-capa-us...@mail.lon- >> capa.org> *Subject: *[LON-CAPA-users] How to automatically display >> solution for a problem?____>> __ __ >> Hi____ >> __ __ >> I failed to find a solution to this seemingly simple and universal >> issue.____>> Conditional sequences might be the mechanism I am looking for, >> but I >> could not find enough details and examples of implementation.____>> __ __ >> Assume I prepared and published a problem 'some.problem', and a >> corresponding solution 'solution.pdf'.____>> I imported the problem into a >> course and set the parameters duedate >> and answerdate.____>> __ __ >> I am looking for a mechanism that will allow me____ >> (1) to include a reference to the 'solution.pdf' inside >> 'some.problem'; and____>> (2) will display 'solution.pdf' to the >> students only when >> 'answerdate' is reached and the answer for 'some.problem' is >> displayed.____>> And I would like to achieve this for every problem >> inside a folder >> and/or a course.____>> __ __ >> I would appreciate any hints on how to achieve that.____ >> __ __ >> Thanks in advance,____ >> Itay____ >> __ __ >> __ __ >> >> _______________________________________________ >> LON-CAPA-users mailing list >> LON-CAPA-users@mail.lon-capa.org >> http://mail.lon-capa.org/mailman/listinfo/lon-capa-users >> > _________________________________________________ > LON-CAPA-users mailing list > LON-CAPA-users@mail.lon-capa.org > http://mail.lon-capa.org/mailman/listinfo/lon-capa-users
_______________________________________________ LON-CAPA-users mailing list LON-CAPA-users@mail.lon-capa.org http://mail.lon-capa.org/mailman/listinfo/lon-capa-users