Help with formatting Cloze question

Help with formatting Cloze question

Grace Mah -
Кількість відповідей: 4

Hi Everyone.  I'm trying to create a fill in the blank (Short Answer) question in a paragraph form, but can't seem to get the text wrap to work.  Each "blank" goes on a new line in the question so students are unable to see the whole paragraph to get context.

This is what I used:

1. Pedro {1:SA:=haz} (hacer) tu tarea. No {1:SA:%100%seas} (ser) vago (lazy). No, no, ¡ya es MUY tarde! No la {1:SA:%100%shagas} (hacer) porque iremo a la tienda para comprarte unos zapatos nuevos. {1:SA:%100%s Ponte} (ponerse) una camiseta y unos pantalones. No {1:SA:%100%solvides}(olvidar) escoger ropa bonita. {1:SA:%100%sMira} (mirar) en Google Maps si ahora hay mucho tráfico. Antes de salir de casa, {1:SA:%100%sbebe} (beber) agua y {1:SA:%100%sve} (ir) al baño. 


Any suggestions on how to get it to look like: 

— Pedro _______ (hacer) tu tarea. No _____  (ser) vago (lazy). No, no, ¡ya es MUY tarde! No la ____ (hacer) porque iremo a la tienda para comprarte unos zapatos nuevos. Ponte (ponerse) una camiseta y unos pantalones. No olvides (olvidar) escoger ropa bonita. Mira (mirar) en Google Maps si ahora hay mucho tráfico. Antes de salir de casa, bebe (beber) agua y ve (ir) al baño.


Thanks for any assistance you can provide.  

-Grace

У відповідь на Grace Mah

Re: Help with formatting Cloze question

Dominique Bauer -
Фото Documentation writers Фото Particularly helpful Moodlers Фото Plugin developers
Hello Grace,

Check the HTML code of the question text and make sure your paragraph is enclosed by paragraph tags, i.e. <p> and </p>, as follows:

<p>1. Pedro {1:SA:=haz} (hacer)...
...(ir) al baño.</p>

and remove all other tags, such as <p>, </p> and <br> inside the paragraph.

У відповідь на Dominique Bauer

Re: Help with formatting Cloze question

Grace Mah -
I tried that.  Here is the HTML code

<p>“Durantemi infancia, mi familia y yo (vivir){1:SA:=vivíamos} en la ciudad y mi mamá nunca nos (dejar) {:SA:=dejaba} salir a jugar a la calle. Por suerte, (haber) {1:SA:=había} un parque cerca de casa donde (poder) {1:SA:=podíamos} estar con nuestros vecinos. Ahí     todos nosotros (jugar){1:SA:=jugábamos} al escondite. A veces mi hermano o mi prima (meterse) {:SA:=se metían} en problemas porque (pelearse) {:SA:=se peleaban} con otros niños. Las mamás (llevar) {:SA:=levaban} la merienda a sus hijos mientras ellos(divertirse)     {:SA:=se divertían} en los columpios (swings). Mis hermanos siempre (ir) {:SA:=ban} al final del parque, donde (ellos-ver) {:SA:=veían} pasar los trenes de la estación cercana. No (nosotros-tener) {:SA:=teníamos} muchas cosas, pero (nosotros-ser){:SA:=éramos}muy     felices. Recuerdo que yo (ser) {:SA:=era} un poco extrovertido. Me (gustar) {:SA:=gustaban} mucho los deportes; siempre (jugar) {:SA:=jugaba} fútbol en la escuela. Y tú ¿cómo (ser) {:SA:=eras}? ¿qué (hacer) {:SA:=hacías}?</p>





У відповідь на Grace Mah

Re: Help with formatting Cloze question

Dominique Bauer -
Фото Documentation writers Фото Particularly helpful Moodlers Фото Plugin developers
What is your version of Moodle? Your code, as is, works fine in Moodle 3.9. Also, have you updated your version of the Cloze question plugin?


У відповідь на Dominique Bauer

Re: Help with formatting Cloze question

Dominique Bauer -
Фото Documentation writers Фото Particularly helpful Moodlers Фото Plugin developers
If you can't immediately update Moodle and the Cloze question plugin, and you're in a hurry, try enclosing the subquestions with div tags as follows:

<p>“Durantemi infancia, mi familia y yo (vivir)<div style="display: inline-block;">{1:SA:=vivíamos}</div> en la ciudad y mi mamá nunca nos (dejar) <div style="display: inline-block;">{:SA:=dejaba}</div> salir a jugar a la calle... 

These tags are not needed with the latest versions of the plugin, but I think they won't hurt when you've made the updates.