Thursday, March 7, 2013

Move blocks to the left by default

I've had a couple issues with blocks appearing at different sides of the page, depending on the page I'm at. There are a couple options that will set default actions for blocks.


Choose the region that blocks appear on your course page:

1) Navigate to your current theme and open up the config.php file.
theme/mythemename/config.php

2)  Scroll down until you see a line of code that describes "in-course"

'incourse' => array(
'file' => 'general.php',
'regions' => array('side-pre', 'side-post'),
'defaultregion' => 'side-pre',
    ),
This code sets the regions for the blocks within a course page. This applies to pages used by any activities as well.
Side-pre:  left side of the page
Side-post:  right side of the page

Setting the "regions" to include both, means that when moving a block, you can choose either the right or left side.
Setting the "defaultregion"  means all blocks appear on the left side by default.



Decide how many default blocks appear on a course page:
This setting decides which default blocks appear automatically on a course page when it's created for the first time. Some people like myself, don't need 5 blocks spawning each time.

1)  Go to your moodle server and located the course format you are currently using. In my case, I'm using the "Collapsed Topics" format for my courses.
course/format/topcoll

2)  Open the config.php file.
course/format/topcoll/config.php

3)  You should see a line of code that looks like this:
$format['defaultblocks'] = ':...';
Here you can delete or add the blocks you want to automatically appear on all course pages.

22 comments:

  1. I feel really happy to have seen your webpage and look forward to so many more entertaining times reading here. Thanks once more for all the details.

    Amazon Web Services Training in Chennai

    Best Java Training Institute Chennai

    ReplyDelete
  2. A universal message I suppose, not giving up is the formula for success I think. Some things take longer than others to accomplish, so people must understand that they should have their eyes on the goal, and that should keep them motivated to see it out til the end.
    python training in omr

    python training in annanagar | python training in chennai

    python training in marathahalli | python training in btm layout

    python training in rajaji nagar | python training in jayanagar


    ReplyDelete
  3. I would like to thank you for the efforts you have made in writing this article. I am hoping the same best work from you in the future as well. In fact your creative writing abilities has inspired me to start my own BlogEngine blog now. Really the blogging is spreading its wings rapidly. Your write up is a fine example of it.
    python training in rajajinagar
    Python training in btm
    Python training in usa

    ReplyDelete
  4. Great post! I am actually getting ready to across this information, It’s very helpful for this blog.Also great with all of the valuable information you have Keep up the good work you are doing well.
    Devops Training in Chennai
    Devops training in sholinganallur

    ReplyDelete
  5. Hey there! I know this is kind of off-topic, but I’d figured I’d ask. Would you be interested in exchanging links
    safety courses in chennai

    ReplyDelete
  6. Thanks a lot very much for the high quality and results-oriented help. I won’t think twice to endorse your blog post to anybody who wants and needs support about this area.
    iosh course in chennai

    ReplyDelete
  7. Simply wish to say your article is as astonishing. The clarity in your post is simply great, and I could assume you are an expert on this subject.
    fire and safety course in chennai

    ReplyDelete
  8. Have you been thinking about the power sources and the tiles whom use blocks I wanted to thank you for this great read!! I definitely enjoyed every little bit of it and I have you bookmarked to check out the new stuff you post
    Microsoft Azure online training
    Selenium online training
    Java online training
    Java Script online training
    Share Point online training

    ReplyDelete
  9. Post is very useful. Thank you, this useful information.

    Start your journey with In Software Training in Bangalore and get hands-on Experience with 100% Placement assistance from experts Trainers @eTechno Soft Solutions Located in BTM Layout Bangalore.

    ReplyDelete
  10. This comment has been removed by the author.

    ReplyDelete
  11. Infycle Technologies, the No.1 software training institute in Chennai offers the Selenium course in Chennai for tech professionals, freshers, and students at the best offers. In addition to the Selenium, other in-demand courses such as Python, Big Data, Oracle, Java, Python, Power BI, Digital Marketing, Cyber Security also will be trained with hands-on practical classes. After the completion of training, the trainees will be sent for placement interviews in the top companies. Call 7504633633 to get more info and a free demo.

    ReplyDelete
  12. Grab the Ddigital Marketing Training in Chennai from Infycle Technologies, the best software training institute, and Placement center in Chennai which is providing professional software courses such as Data Science, Artificial Intelligence, Cyber Security, Big Data, Java, Hadoop, Selenium, Android, and iOS Development, DevOps, Oracle, etc with 100% hands-on practical training. Dial 7502633633 to get more info and a free demo and to grab the certification for having a peak rise in your career.

    ReplyDelete
  13. Much obliged for sharing this brilliant substance. its extremely fascinating. Numerous web journals I see these days don't actually give whatever pulls in others however the manner in which you have plainly clarified everything it's truly awesome. There are loads of posts But your method of Writing is so Good and Knowledgeable. continue to post such helpful data and view my site too...
    how to make a paper airplane eagle | how to make a boomerang airplane | the eagle paper airplane | best paper airplane design for distance and accuracy | best paper airplanes for distance and speed | what is the best paper airplane design for distance | paper airplane that flies far and straight | nakamura lock paper airplane instructions | paper airplane templates for distance | science behind paper airplanes | how to make a paper airplane that flies far and straight step by step | classic dart paper airplane

    ReplyDelete