Adding a new "page"

Adding a new "page"

by Bob Neuner -
Number of replies: 2

I would like to add several new pages to my moodle installation. I have several distinct classifications of courses that I would like to keep completely separate.

What I would like to do, is create other pages like the course (home) page with their own set of categories and courses, essentially cloning the "home" page and adding a link to the navigation block. This is mostly an appearance thing to group courses by (US) States, or even by country, should we branch out to the world.

I thought I saw a menu item to "add a new page" but can't find it now.

I'm not a professional programmer (but I dabble). I am currently using 2.4.1, but plan to upgrade to 2.5.X as soon as I feel it is stable enough.

Can someone point me in the right direction? I've search the forums, but can't find anything that's not reprogramming the themes. By the way, I'm using the "formal white" theme.

Average of ratings: -
In reply to Bob Neuner

Re: Adding a new "page"

by Farhan Karmali -
Picture of Core developers Picture of Plugin developers Picture of Testers

Hi Bob,

There are two types of "page"

First the one which you saw "add a new page" that is a moodle resource, you can read more about it here

http://docs.moodle.org/23/en/Page

This will let you create static html pages in moodle and the url will be with query strings and not something pretty looking

If you want good looking urls and you can code html separately , you may go in for

https://moodle.org/plugins/view.php?plugin=local_staticpage

 

The other programming page. You may create a moodle page by PHP coding, the php file can reside in your root moodle folder. Please read http://docs.moodle.org/dev/Page_API

 

Or as you have explained in the scenario above , you may want to see the codes of course/index.php and see if you can alter it to suit your requirements

The theme does not matter.

In reply to Farhan Karmali

Re: Adding a new "page"

by Bob Neuner -

Thanks Farhan!

Moodle is so versatile, I knew was more that one way to solve this problem. I am not strong with PHP, but it looks like now is the time to learn and practice. big grin