Blocks FAQ: Difference between revisions
From MoodleDocs
Helen Foster (talk | contribs) (→How do I set the default block layout for new courses?: link added, see also) |
Helen Foster (talk | contribs) (How do I hide front page blocks from non-logged-in users?) |
||
Line 1: | Line 1: | ||
==How do I set the default block layout for new courses?== | {{stub}}==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). | 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. | 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 [[Capabilities/moodle/block:view|moodle/block:view]] to prevent. | |||
# Click the "Save changes" button. | |||
==See also== | ==See also== |
Revision as of 13:55, 5 August 2008
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.
See also
- Using Moodle Blocks forum