[opencms-dev] teacher/student pages

Olli Aro olli_aro at yahoo.co.uk
Thu Oct 16 16:52:01 CEST 2003


It sounds like you could have two opencms user groups (e.g. teachers and
students) and then display the button ( / hidden funtionality) based on the
website user group members. This all can be build in JSP templates.

Your approach for storing the answers sounds suitable and probably works
quite nicely as you are proposing to do it.

Regards,

Olli

> -----Original Message-----
> From: opencms-dev-admin at opencms.org
> [mailto:opencms-dev-admin at opencms.org]On Behalf Of Riette van Beek
> Sent: 16 October 2003 14:24
> To: opencms-dev at opencms.org
> Subject: [opencms-dev] teacher/student pages
>
>
> Hi all,
>
> New to openCMS, we are being asked to develop a template for web-based
> courses. When a teacher (or guest) views the pages, they have to see the
> course with exercises. When a 'teacher' opens the page, (s)he must see,
> below each exercise, some element (button) which, when clicked,
> inserts the
> answer at that place. Of course, whatever the teacher teaches,
> (s)he may not
> have too much computer-savvy. (For the moment I am assuming that teacher =
> course-developer)
>
> A student taking the course should see explanation A, question A,
> explanation B, question B, etcetera.
> A teacher teaching the course (maybe using a beamer ... ) should see
> explanation A, question A, button, explanation B, question B, button,
> etcetera. When this teacher clicks a button (for question A), the
> answer to
> the question above gets inserted at that point in the page,
> visible for the
> teacher (and, via the beamer, for the class): explanation A, question A,
> answer A, explanation B, question B,  etcetera..
>
> My first question: How can we get this done in openCMS?
>
> The ideal way for teachers to compose a course would be: in directory
> 'topic/answers' make  files 'answerA', 'answerB' containing the
> answer. Then
> make a page in directory 'topic' containing explanation A, question A,
> include or somehow link to the file 'teacher/answerA', explanation B,
> question B, include or somehow link to the file 'teacher/answerB'
> etcetera.
> Preferably the answer-files would already contain (template?!)
> the code for
> detecting whether the viewer/user is teacher or not, if not, return, is
> teacher, include the button + code to include the 'variable part of the
> answer-file' (what the teacher types in to be the answer) in the
> course page
> when the button is clicked (and ideally, a 'back-button so that the answer
> disappears after clicking).
>
> I found javascript-code for showing/hiding text, like answers.
> So, my second
> question: Is javascript the way to go?
>
> Even if javascript is the way to go, students ought not to see
> the clickable
> element, and certainly not the answer!
> The template that I am developing does determine whether the current user
> belongs to group 'Teachers', but how can I transfer the value of this
> variable to Javascript (this is my third question)?
>
> Moreover, even if javascript is the way to go, it would be nice
> to have the
> code in a file that the teachers can include in the WYSIWYG
> editor - which,
> as it looks to me, strips all code from a file that is included. Question
> four: How can I let a teacher easily and foolproof include a
> code-fragment?
>
> Okay, another newbie ...... but I have seen so many good answers on this
> list, that I hope .....
>
> Thanks!
>
> Riƫtte van Beek
>
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://mail.opencms.org/mailman/listinfo/opencms-dev
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.522 / Virus Database: 320 - Release Date: 29/09/2003
>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.522 / Virus Database: 320 - Release Date: 29/09/2003





More information about the opencms-dev mailing list