Note: You are currently viewing documentation for Moodle 2.2. Up-to-date documentation for the latest stable version is available here: Blocks FAQ.

Blocks FAQ: Difference between revisions

From MoodleDocs
(removed old stuff and updated for 2.0)
Line 21: Line 21:
#Click the X next to "authenticated user" to prevent them viewing this block.
#Click the X next to "authenticated user" to prevent them viewing this block.
#From now on, regular authenticated users will not be able to see the block. However, those who have been given the role of "authenticated user on the front page" will be able to see it.
#From now on, regular authenticated users will not be able to see the block. However, those who have been given the role of "authenticated user on the front page" will be able to see it.
==I want to hide the Latest News Block from anyone not logged in.==
This example will work for all [[:Category:Block|blocks]].
#Log in as an Administrator then turn editing on
# Click on the assign roles icon (usually the first icon and looks like [[Image:Assignrolescmf01.gif]] one of these) in the header of the [[Block|block]] to be hidden, in this case the [[Latest News block]]. This takes you to the Assign roles page.
# Click the "Override permissions" tab.
# Select the role "Guest".
# Reset the capability moodle/block:view to '''prevent'''.
# Click the "Save changes" button.
This should hide the block from everyone until they have logged in.
==I hid the administration menu from the blocks page and now I have no way of showing any module blocks because I can't get to the admin menu to show anything.==
Log into your Moodle as normal and then type this:
  <nowiki>(http://www.mysitename.org/)admin/blocks.php</nowiki>
into the address bar. This will take you directly to the blocks page and you will be able to reset any hidden block.
==When I try to select some pages in the Admin block, I get a "Timed Out" message and the screen reverts to the login page==
This could be caused by many things. The best guess, would be that the installation process made some mistakes. For example, a MySQL, PHP or Apache setting or combination of settings were not configured correctly for the site. If it is a new site, it is probably better to not waste time on trying to find out which line in a config file needs to be changed, but first try and reinstall. Check your browser, is it IE7 or 8. Unfortunately, some releases of IE have trouble rendering Moodle styles easily, the complexity of a page may cause an error in IE and the internal error handlers just toss you back to the login page.


==How can I change a Block item name from a list inside a block?==
==How can I change a Block item name from a list inside a block?==
You can change an item name in the Administration ►  Language ►  Language editing > Editing words and phrases tab. Select the 'moodle.php' file then search for the words you need to alter.   
You can change an item name in ''Settings>Site Administration > Language> Language customization'' Select the 'moodle.php' file then search for the words you need to alter.   


==See also==
==See also==

Revision as of 19:48, 9 September 2011

How do I hide front page blocks from non-logged-in users?

  1. Click the "Turn editing on" button at the top-right of the front page. (You need to be logged in as an administrator.)
  2. Click the assign roles icon (a face and mask) in the header of the block to be hidden. (NOTE: Don't worry if you get an error message saying you are not able to assign roles ;) )
  3. Scroll down to the settings block and click the Permissions link
  4. Blockassign.png
  5. In the View block section, click the X next to Guest
  6. Click the "Save changes" button.

How do I make a front page block visible to teachers but not students?

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.

  1. Ensure you have hidden your block from non-logged in users as in the instructions above.
  2. In Settings>Site administration>Users>Permissions>Define roles, click on "authenticated user on the front page"
  3. In the context type, select "block"
  4. Set moodle/block:view to "allow". Save the changes.
  5. Turn editing on on your front page.
  6. Click the "assign roles " icon on your block.
  7. Click the blue words of "authenticated user on the front page" to access the screen where you can 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.
  8. Now click "Permissions" in the Settings block.
  9. Click the X next to "authenticated user" to prevent them viewing this block.
  10. From now on, regular authenticated users will not be able to see the block. However, those who have been given the role of "authenticated user on the front page" will be able to see it.

How can I change a Block item name from a list inside a block?

You can change an item name in Settings>Site Administration > Language> Language customization Select the 'moodle.php' file then search for the words you need to alter.

See also