Posts made by Itamar Tzadok

Hi David,

There already is a "rewrite" of the database module that is called Dataform and that already realizes some of the features you mention (and many others), e.g. multiple views, multiple view types, notifications, reuired fields and other formatting rules etc. See http://substantialmethods.com/subject/view.php?id=4 for more info (although no complete docs yet). Funding would probably make it possible to realize the rest of your wish list by Oct. 1st. Message me if this could work for you.

Itamar smile

Average of ratings: Useful (2)

I'm about to add that but in the Dataform rather than the Database. At any rate its going to be a bit of a challenge because the core api works such that we fetch the entries first and then their ratings. But of course if we want to sort by ratings we need to fetch the ratings first. By the way, in the Dataform you can show the ratings anywhere you want just like any other field. See illustration (that's Dataform activity grading with a display of entry ratings). smile

Average of ratings: Useful (1)

You probably need to call rebuild_course_cache to update the cache with the newly added resource. Your newly added resource appears after adding a resource/activity in the standard way because the latter goes through mod_edit where the course cache is rebuilt. Afaik, at least up to 222 there is no API for adding a resource/activity programtically. hth smile

Marcus, I've just got to a point where I need an efficient way to create simple gap fill questions of the sort this thread is about. As I've suggested before it seems to me that another question type is not necessarily the most efficient way to get the desired efficiency. So I've drafted a preliminary question tools block. At this point its not even a block type but just javascript in html block.

So we start with some text in the question text of the cloze question:

 

To make some parts SA subquestions we simply activate the {SA} tool in the question tools and click on a word in the editor. The word will be wrapped with the SA syntax. If we want more than one word, we can select the desired string and the selection will be wrapped.

 

Suppose now that we want to de-SA one of the marked words. We activate the eraser tool, and as before click on the target word (or select the whole {:SA...} string) and the wrapping SA syntax will be removed.

 

These tools can be extended to allow complex setting of the subquestion. MC, for instance, could show a few input fields for the options. etc. smile

Average of ratings: Useful (3)