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

Blocks FAQ: Difference between revisions

From MoodleDocs
(I accidentally deleted the navigation (or administration) block!)
Line 66: Line 66:
==My Administration block links don't expand!==
==My Administration block links don't expand!==


This has been noticed as a javascript problem. For advice, see  this forum thread https://moodle.org/mod/forum/discuss.php?d=166994 and for more details this tracker MDL-31678.
This has been noticed as a javascript problem. You can try to:
 
# Use another browser or another version (try both, lower and higher versions).
# [[Purge all cache]] (Administration > Development > Purge all caches).
# Change the Use slash arguments option ([[HTTP]] --Administration > Server > HTTP).
# Try different settings at the [[AJAX and Javascript settings]] page (Administration > Appearance > AJAX and Javascript).
# Turn off Java in your browser.
 
You should also:
 
# Enable [[Debugging]] (Administration > Development > Debugging).
# Check if your browser is showing some warning or error indications (watch the status bar).
 
For advice, see  this forum thread https://moodle.org/mod/forum/discuss.php?d=166994 and for more details this tracker MDL-31678.


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

Revision as of 06:51, 24 July 2013

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 (often 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. File:Blockassign.png
  5. In the View block section, click the X next to Guest
  6. Click the "Save changes" button.

How do I get rid of a link in "Site Pages" in the Navigation block?

When a resource or activity (like a page, file or forum) is added to the Main menu block on the front page, it will appear in the Site Pages of the Navigation block. To remove this link, turn on the editing on the front page, go to or add the Main menu block and click to delete the item.

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 Administration>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 Administration 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.

How to I make a block "sticky"?

See Block settings. Using the edit icon in the block heading, go to the configuration page. Look for the "Where this block appears" group and "Display on page types". Depending upon your current context and permissions, you will see different options. One maybe "All pages" or "Any type of course main page", and others.

Where did that block come from? I do not want it!

Your site administrator or some one with more permissions than you decided that block should be there. It is possible to force a block to appear on other pages. For example, a site administrator my force a HTML block on every main course page and determine where it will be, so they may put site messages there.

Your site administrator can tell where every instance of a block appears via Blocks administration.

How can I decide the order in which blocks are docked?

Blocks are "docked", from top to bottom (usually on the left) in the order in which you dock them.

How can I add a block to all user profile pages?

See User profiles for instructions.

How can I prevent users from adding blocks to their My home page?

See My home for instructions.

The blocks have disappeared from the front page/course page!

This can sometimes be caused by users pasting from Microsoft Word which corrupts the formatting. See this forum post for more details https://moodle.org/mod/forum/discuss.php?d=217390#p958884

Help, I accidentally hid the administration block without realising the consequences!

  1. Go to http://yourmoodlesite.org/admin/blocks.php
  2. Unhide the settings block by clicking the closed eye icon opposite it

I accidentally deleted the navigation (or administration) block!

  1. Go to Administration > Site administration > Plugins > Blocks > Manage blocks (or via the URL http://yourmoodlesite.org/admin/blocks.php) and unprotect the navigation block by clicking the padlock icon
  2. Turn editing on in any course
  3. Go to the front page and use the 'Add a block' dropdown menu to add a navigation block there, setting it to display throughout the entire site
  4. Go back to Administration > Site administration > Plugins > Blocks > Manage blocks and re-protect the navigation block.

The above method works the same for the navigation and administration blocks.

My Administration block links don't expand!

This has been noticed as a javascript problem. You can try to:

  1. Use another browser or another version (try both, lower and higher versions).
  2. Purge all cache (Administration > Development > Purge all caches).
  3. Change the Use slash arguments option (HTTP --Administration > Server > HTTP).
  4. Try different settings at the AJAX and Javascript settings page (Administration > Appearance > AJAX and Javascript).
  5. Turn off Java in your browser.

You should also:

  1. Enable Debugging (Administration > Development > Debugging).
  2. Check if your browser is showing some warning or error indications (watch the status bar).

For advice, see this forum thread https://moodle.org/mod/forum/discuss.php?d=166994 and for more details this tracker MDL-31678.

See also

Using Moodle forum discussions: