From 63ecc64d820fa49f7484629688f10938a237f7dd Mon Sep 17 00:00:00 2001 From: Vasyl Nakvasiuk Date: Mon, 18 Mar 2013 16:13:44 +0200 Subject: [PATCH] conditional_module.rst done --- .../conditional_module/conditional_module.rst | 51 ++++++++++++++----- 1 file changed, 37 insertions(+), 14 deletions(-) diff --git a/doc/public/course_data_formats/conditional_module/conditional_module.rst b/doc/public/course_data_formats/conditional_module/conditional_module.rst index 43350a7d3a..556358f229 100644 --- a/doc/public/course_data_formats/conditional_module/conditional_module.rst +++ b/doc/public/course_data_formats/conditional_module/conditional_module.rst @@ -7,7 +7,9 @@ Xml format of conditional module [xmodule] Format description ================== -The main tag of Conditional module input is:: +The main tag of Conditional module input is: + +.. code-block:: xml ... @@ -20,7 +22,7 @@ The main container for a single instance of Conditional module. The following at be specified for this tag:: sources - location id of required modules, separated by ';' - message - message for case, where one of conditions not passed. + message - message for case, where one or more are not passed. Here you can use variable {link}, which generate link to required module. completed - map to `is_completed` module method attempted - map to `is_attempted` module method @@ -30,25 +32,46 @@ be specified for this tag:: show tag -------- -Like unix symlink to some set of xmodules. The following attributes can +Symlink to some set of xmodules. The following attributes can be specified for this tag:: - sources - location id of required modules, separated by ';' + sources - location id of modules, separated by ';' Example ======= -Examples of draggables that can't be reused +Examples of conditional depends on poll ------------------------------------------- .. code-block:: xml - - -

You see this, cause your vote value for "First question" was "man"

-

Code example:

-
-            
- -
+ + +

You see this, cause your vote value for "First question" was "man"

+ +
+ +Examples of conditional depends on poll (use tag) +------------------------------------------- + +.. code-block:: xml + + + + + + + +Examples of conditional depends on problem +------------------------------------------- + +.. code-block:: xml + + + You see this, cause "lec27_Q1" is attempted. + + + You see this, cause "lec27_Q1" is not attempted. + \ No newline at end of file