HTML block: Difference between revisions
- Managing blocks
- Block settings
- Activities
- Admin bookmarks
- Administration
- Blog menu
- Blog tags
- Calendar
- Comments
- Community finder
- Course completion status
- Course overview
- Course/site summary
- Courses
- Feedback
- Flickr
- HTML
- Latest news
- Login
- Logged in user
- Main menu
- Mentees
- Messages
- My latest badges
- My private files
- Navigation
- Network servers
- Online users
- People
- Quiz results
- Random glossary entry
- Recent activity
- Recent blog entries
- Remote RSS feeds
- Search forums
- Section links
- Self completion
- Social activities
- Tags
- Upcoming events
- Youtube
- Blocks FAQ
No edit summary |
Mary Cooch (talk | contribs) (added screencast) |
||
(27 intermediate revisions by 10 users not shown) | |||
Line 1: | Line 1: | ||
{{Blocks}} | |||
A '''HTML block''' 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. See the screecast: [http://youtu.be/-mjZJ-fXsQg The HTML block] | |||
[[File:Htmlblockexample.png]] | |||
[[ | 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]], [[Flash]], and other files which can add unique elements to a course or site page. | ||
[[ | |||
===Site administration settings=== | |||
To aid with styling the block, an administrator can, from ''Administration > Site administration > Plugins > Blocks > HTML'', 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]] | |||
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. | |||
==Adding a Twitter feed block== | |||
An HTML block can be used to display the latest tweets from any Twitter account. | |||
# Log in to Twitter | |||
# Go to https://twitter.com/settings/widgets/new | |||
# Enter the Twitter username e.g. moodledev then click the 'Create widget' button | |||
# In another tab or window add a new HTML block to your Moodle front page or course page | |||
# Configure the new block, adding a title if desired | |||
# Click the 'Edit HTML source' button (< >) then copy and paste the code provided by Twitter into the HTML source | |||
# Click the 'Save changes' button | |||
[[File:twitter feed block.png]] | |||
[[fr:Bloc HTML]] | |||
[[de:Textblock]] | |||
[[es:Bloque HTML]] |
Latest revision as of 12:57, 4 March 2015
A HTML block 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. See the screecast: The HTML 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, Flash, and other files which can add unique elements to a course or site page.
Site administration settings
To aid with styling the block, an administrator can, from Administration > Site administration > Plugins > Blocks > HTML, 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:
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.
Adding a Twitter feed block
An HTML block can be used to display the latest tweets from any Twitter account.
- Log in to Twitter
- Go to https://twitter.com/settings/widgets/new
- Enter the Twitter username e.g. moodledev then click the 'Create widget' button
- In another tab or window add a new HTML block to your Moodle front page or course page
- Configure the new block, adding a title if desired
- Click the 'Edit HTML source' button (< >) then copy and paste the code provided by Twitter into the HTML source
- Click the 'Save changes' button