Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top
  • I want to write my own page in moodle that call with a link on the blocks (left side of the page)

    when I click that link I want to load my page (php) in the region field without change the other parts of the page

  • note that the link is added by mine
share|improve this question

migrated from stackoverflow.com Aug 4 '11 at 5:10

This question came from our site for professional and enthusiast programmers.

If it must be a php page the easiest way to do this is to

  1. copy the index.php page in the root directory
  2. replace everything between print_container_start() (right after middle-column column is printed) and print_container_end() with your code
  3. Optional - delete conditionals that checks moodle version numbers

omitting step three shouldn't do any harm it will just make some needless upgrade checks.

share|improve this answer
thanks but the index.php in the root directory doesn't have print_container_start() & print_container_end() – user826215 Aug 3 '11 at 5:34

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.