Blocks FAQ: Różnice pomiędzy wersjami
Z MoodleDocs
mNie podano opisu zmian |
Mary Cooch (dyskusja | edycje) Nie podano opisu zmian |
||
Linia 13: | Linia 13: | ||
# Set the capability [[Capabilities/moodle/block:view|moodle/block:view]] to prevent. | # Set the capability [[Capabilities/moodle/block:view|moodle/block:view]] to prevent. | ||
# Click the "Save changes" button. | # Click the "Save changes" button. | ||
==How do I make a front page block visible to teachers but not students?== | |||
In Moodle 1.9 it is possible to control who sees block on the front page. The following applies to any specified group of people, not just teachers and students. | |||
# Ensure you have hidden your block from non-logged in users as above | |||
# In site administration>users>permissions>define roles, create a new role such as "front page block viewer" | |||
#Click the "Turn editing on" button on your front page | |||
#Click the "assign roles " icon on your block. | |||
#Click the blue words of your new role. They link to the assign roles page. Choose who you want to allow to see this block (such as your teachers) by moving them from the right hand box to the left. | |||
#Click the "Override permissions" tab | |||
#For your new role, press the "allow" button to allow them to view this block | |||
#For the authenticated user, press the "prevent" button to prevent them seeing this block | |||
#Click the "Save changes"button. | |||
==See also== | ==See also== |
Wersja z 21:22, 10 paź 2009
How do I set the default block layout for new courses?
The default block layout can be set as "sticky" blocks via Administration > Appearance > Sticky blocks (in 1.6 to 1.8) or Administration > Modules > Blocks > Sticky blocks (in 1.9 onwards).
An alternative method is to edit config.php. See Block layout for more details.
How do I hide front page blocks from non-logged-in users?
- Click the "Turn editing on" button at the top-right of the front page. (You need to be logged in as an administrator.)
- Access the assign roles page via the assign roles icon (a face and mask) in the header of the block to be hidden.
- Click the "Override permissions" tab.
- Select the guest role.
- Set the capability moodle/block:view to prevent.
- Click the "Save changes" button.
How do I make a front page block visible to teachers but not students?
In Moodle 1.9 it is possible to control who sees block on the front page. The following applies to any specified group of people, not just teachers and students.
- Ensure you have hidden your block from non-logged in users as above
- In site administration>users>permissions>define roles, create a new role such as "front page block viewer"
- Click the "Turn editing on" button on your front page
- Click the "assign roles " icon on your block.
- Click the blue words of your new role. They link to the assign roles page. Choose who you want to allow to see this block (such as your teachers) by moving them from the right hand box to the left.
- Click the "Override permissions" tab
- For your new role, press the "allow" button to allow them to view this block
- For the authenticated user, press the "prevent" button to prevent them seeing this block
- Click the "Save changes"button.
See also
- Using Moodle Blocks forum