Text block: Difference between revisions

From MoodleDocs
(creating this page)
 
m (updated video)
 
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
The Text block (previously called the HTML block in English)...
{{Blocks}}
The Text block (previously called the HTML block in English) is a standard block used to add text, multimedia, widgets etc. to a site front page or course page.  The title bar may be left blank if desired.
[[File:40TextBlockEn.png|frame|center|Example of a Text block]]
 
The block is flexible and can incorporate a variety of functions and uses in the content area. It has the standard Moodle [[Text editor]] for formatting text, adding images or creating links,  switching to code view and allows any valid HTML mark-up to be used. This enables [[Multimedia plugins|embedding video]], [[Audio in Moodle|sounds]] and other files which can add unique elements to a course or site page.
{{MediaPlayer | url = https://youtu.be/RVO7GvgDF70?si=UxManWvqSSb5tXoZ | desc = Text block}}
 
===Site administration settings===
 
To aid with styling the block, an administrator can, from ''Administration > Site administration > Plugins > Blocks > Text'', toggle the ability to allow additional CSS classes to be set in individual block instances. If it is enabled, a field appears at the bottom of HTML block instance's configuration forms:
 
[[File:additionalcssclasses.png|300px]]
 
Please note that if additional CSS classes have been added and the administration setting is then disabled, the form settings are saved in the database and will reappear if this is re-enabled.
 
[[es:Bloque de texto]]
[[de:Textblock]]

Latest revision as of 12:23, 12 November 2023

The Text block (previously called the HTML block in English) is a standard block used to add text, multimedia, widgets etc. to a site front page or course page. The title bar may be left blank if desired.

Example of a Text block

The block is flexible and can incorporate a variety of functions and uses in the content area. It has the standard Moodle Text editor for formatting text, adding images or creating links, switching to code view and allows any valid HTML mark-up to be used. This enables embedding video, sounds and other files which can add unique elements to a course or site page.

Text block

Site administration settings

To aid with styling the block, an administrator can, from Administration > Site administration > Plugins > Blocks > Text, toggle the ability to allow additional CSS classes to be set in individual block instances. If it is enabled, a field appears at the bottom of HTML block instance's configuration forms:

additionalcssclasses.png

Please note that if additional CSS classes have been added and the administration setting is then disabled, the form settings are saved in the database and will reappear if this is re-enabled.