Paramétrage des blocs
- Gestion des blocs
- Paramètres des blocs
- Activité récente
- Activités
- Activités sociales
- Article d'un glossaire
- Articles de blog récents
- Auto-achèvement
- Calendrier
- Commentaires
- Connexion
- Cours
- Dernières annonces
- Description du cours/du site
- Événements à venir
- Feedback
- Fichiers personnels
- Flux RSS
- Flickr
- HTML
- Liens vers sections
- Navigation
- Marque-pages administrateur
- Menu blog
- Menu principal
- Messages personnels
- Participants suivis
- Personnes
- Recherche communauté
- Recherche forums
- Réglages
- Résultats d'activité
- Résultats de test
- Serveurs du réseau
- Statut d'achèvement de cours
- Tags
- Tags de blog
- Utilisateur connecté
- Utilisateurs en ligne
- Vue d'ensemble des cours
- Youtube
Ajouter un bloc à un page
Des blocs peuvent être ajoutés à une page en mettant celle-ci en mode édition puis en utilisant la liste déroulante 'Ajouter un bloc'.
Voir la page Blocs pour la liste exhaustive des blocs disponibles dans une installation standard de Moodle. Dans votre site, il se peut que votre administrateur ait ajouté des blocs contributifs, ou au contraire désactivé certains de ces blocs.
Nouveauté
Moodle 2.3
Note : La possibilité d'ajouter ou non un bloc à une page est désormais (Moodle 2.3) contrôlé par une capacité addinstance (Ajoute rune instance) (ex.), autorisée pour le rôle enseignant par défaut.
Configuration générale des blocs
Après avoir ajouté un bloc, cliquez sur l'icone d'édition dans l'en-tête du bloc pour le configurer.
Réglages du bloc
Certains blocs permette de modifier le titre visible du bloc, comme par exemple le bloc HTML.
Fichier:Block configuration block setting area.png
Où le bloc apparait ?
Suivant le contexte et les permissions des utilisateurs, cette zone détermine où le bloc qui vient d'être posé va apparaître.
- Emplacement original du bloc : donne de l'information sur l'endroit où le bloc a été créé au départ.
- Afficher sur les types de page : Permet à l'utilisateur de définir tous les contextes dans lesquel ce bloc apparaîtra. Ces options varient selon le profil de l'utilisateur. Par exemple, un administrateur de site peut voir les options qui lui permettent d'afficher ce bloc sur toutes les pages du site, ou sur toutes les pages d'entrée de cours, alors qu'un enseignant ne pourrait place ce bloc que dans les pages du cours.
- Région par défaut : En général, la colonne de gauche ou la colonne de droite, mais certains formats de cours peuvent proposer d'autres régions.
- Poids par défaut : L'endroit de la colonne où placer le bloc par rapport aux autres blocs qui s'y trouvent. -10 placera le bloc toujours en haut, 10 tout en bas. Le zéro est neutre.
Fichier:Block configuration where appears.png
Voir Profil utilisateur pour les informations sur comment faire apparaître un bloc sur les pages liées à l'utilisateur.
On this page
- Visible - Yes or No.
- Region - Here you can override the column preference on this page.
- Weight - Here you can override the default setting on this page.
Fichier:Block configuration on this page.png
'Sticky blocks'
The term 'sticky' block was used in older versions of Moodle to mean blocks which the admin added either sitewide or to the My home page and which could not be deleted by regular users. Although the term is no longer used, it is still possible to make blocks 'sticky' and in a wider variety of locations. Here are a few examples:
Making a block sticky throughout the whole site
The Moodle administrator might wish for example to display support contact details sitewide using an HTML block called 'Helpdesk':
- As an administrator, turn on the editing on the front page and add the block you wish to make sticky.
- For Where this block appears>Page contexts, choose 'Display throughout the entire site'.
- Decide other settings according to your preference and save.
- The block will now appear on all pages of your Moodle.
Making a block sticky throughout a course
The teacher might wish for example to display the Messages block everywhere in the course. This would allow students easily to message each other and their tutors not only on the course from the main page but also on individual activities. The block would be available on admin pages too.
- As a teacher in the course, turn on the editing on the course main page and add the block you wish to make sticky.
- For Display on page types, choose 'Any page'
- Decide other settings according to your preferences and save.
- The block will now appear on all pages of the course.
Making a block sticky in a category
A user with category rights might for instance wish to display a Remote RSS feeds block in all of the courses within a particular category, such as a Head of Science adding Science news feeds to the Physics, Biology and Chemistry courses. While this should be possible, there are currently problems with blocks on category pages not saving the required page context. See MDL-31616
Making a block sticky in a resource or an activity
A teacher might wish to display a block in one particular resource or activity, for example a Head of Faculty might make create a Book for departmental policies and wish to add the comments block to every chapter/page of a book so colleagues can give quick feedback. (Note that such a comments block would be the same block on each chapter/page)
- As a teacher in the course, turn on the editing and click into the resource/activity -in this case a Book and add the block.
- For Display on page types, you will see (for example) 'mod-book*'
- Decide other settings according to your preferences and save.
- The block will now appear on all related screens.
Adding a block to all user profile pages
See User profiles
Adding a block to My home page for all users
See My home Note that such a block would not be truly 'sticky', in that users can customise their My home page and could, if wished, delete the block.
Block permissions
Role permissions for a block can be changed by clicking the Assign roles icon (a face and mask) in the header of the block then via Settings > Block administration > Permissions.
See Blocks FAQ for details of how to hide front page blocks from non-logged-in users.