Aquesta pàgina forma part de la documentació de Moodle en català, tot i que no ha estat traduïda encara. Podeu contribuir obertament a les tasques de traducció. Podeu consultar la Guia d'edició de la documentació i també participar ens els debats del fòrum de traductors de la documentació a moodle.org

HiddenText filter: diferència entre les revisions

De MoodleDocs
Salta a:navegació, cerca
 
(5 revisions intermèdies per 2 usuaris que no es mostren)
Línia 1: Línia 1:
[[Image:HiddenText logo.gif|right]]
Using filter "HiddenText" teachers will be able to provide "hints" to students where the information is initially hidden but can easily be revealed by student in any time when he need.
Using filter "HiddenText" teachers will be able to provide "hints" to students where the information is initially hidden but can easily be revealed by student in any time when he need.


Línia 6: Línia 7:
# Copy folder ''hiddentext'' into directory ''filter'' of your Moodle instalation.
# Copy folder ''hiddentext'' into directory ''filter'' of your Moodle instalation.
# Copy language file into your "lang" directory.
# Copy language file into your "lang" directory.
# Enable it from "Administration/Filters".
# Enable it from "Administration/Modules/Filters".
 
 
== Using ==
== Using ==


Línia 75: Línia 76:


[[Image:HiddenText_example_32.png]]
[[Image:HiddenText_example_32.png]]
Thanks for using!


== See also ==
== See also ==
Línia 84: Línia 83:
* [http://www.elearning-factory.de/moodle/course/view.php?id=28 Support page on German] (thanks to Andy Tagliani)
* [http://www.elearning-factory.de/moodle/course/view.php?id=28 Support page on German] (thanks to Andy Tagliani)


[[Category:Administrator]]
[[Category:Contributed code]]
[[Category:Filter]]
[[Category:Filter]]
[[cs:Filtr Skrytý text]]
[[ru:Фильтр HiddenText]]

Revisió de 15:26, 30 ago 2011

HiddenText logo.gif

Using filter "HiddenText" teachers will be able to provide "hints" to students where the information is initially hidden but can easily be revealed by student in any time when he need.

Installing

  1. Download filter from download page
  2. Copy folder hiddentext into directory filter of your Moodle instalation.
  3. Copy language file into your "lang" directory.
  4. Enable it from "Administration/Modules/Filters".

Using

  1. Create your content.
  2. Enclose every part which you want initially hide between:
    • <span filter="hiddentext">hidden_content_here</span> or
    • <div filter="hiddentext">hidden_multiline_content_here</div>
  3. Use span tag if you want hide path of text inside paragraph and div if text can take more than one line.
  4. If you use HTMLeditor you can type span and div tags inside square brackets straight in text without switching to HTML mode:
    • [span filter="hiddentext"]hidden_content_here[/span]
  5. Test it.

How it works

  • After page loaded any content between tags hides. In this place will be dislpayed picture with eye.
  • When student will click on eye icon hidden text will be displayed.

Additional information

You can use two optional parameters: class and desc (description):

  • class - lets you change style of hidden text
  • desc - lets you change description which displayed after eye icon. If desc absent in div tag will be used description from lang file. If description absent in span tag will be displayed only eye icon.

You available following styles: hinline, htext, hcode and styles which you add themselves in css of your theme or already there are!

Don't like embedded styles? You can change them in yuidomcollapse.css and send to me... ;-)

Examples

Simple SPAN

This text is <span filter="hiddentext">very, very, very</span> long.

Will initially displayed as:

HiddenText example 11.png

After click:

HiddenText example 12.png

SPAN with description

The American holiday of Thanksgiving is celebrated 
on the <span filter="hiddentext" desc="What?">fourth</span> Thursday of November.

Will initially displayed as:

HiddenText example 21.png

After click:

HiddenText example 22.png

DIV with class and description

Mention capitals of following countries: Canada, Italy, Japan
<div filter="hiddentext" class="htext" desc="Answer here">Canada - Ottawa
Italy - Rome
Japan - Tokyo</div>

Will initially displayed as:

HiddenText example 31.png

After click:

HiddenText example 32.png

See also