Pages

Local plugins ::: local_pg
Maintained by Mohammad Farouk
Custom pages for moodle, with multilangs, custom contexts, blocks, selectable layout, custom js and css for each page, easy url and more.
Latest release:
13 sites
34 downloads
4 fans
Current versions available: 1

Pages

Custom pages for moodle, with multilangs, custom contexts, blocks, selectable layout, custom js and css for each page, easy url and more.

Using any Moodle html editor to create pages in moodle.

  • Create custom pages content from frontend.
  • Customize your page with extra css and js only applied to this page.
  • Select the visibility of the page (public, guest, authenticated or draft).
  • Add multilangs page contents, title and even with different photos for each language if preferred.
  • Select your prefered layout.
  • Custom context for each page which allows adding blocks to each page individually and different permissions according to the assigned roles.
  • Prebuilds contact us page to inclide instructions and other ways of contact.
  • Prebuilds FAQ page with adding and rearranging any number of questions and answers.
  • Add pages in navbar.
  • Page content saved in cache for faster load.
  • Simple url as possible with many variations for the same page (ex. {your-site}/local/pg/cutom-page or {your-site}/?/cutom-page).

How to use?

  1. Navigate to site administration -> reports - > Pages.
  2. You will see a table with all cutom pages, you can edit any of them or click add.
  3. Inside the page itself enable edit mode to edit, delete or add new page.
  4. After creation of the page you could edit it to add another content for another language also with different images of required.
  5. In FAQ page, enable edit mode to add, edit or sort questions.
  6. Blocks could be added to the page but make sure to select suitable layout.

For advanced users:

  • Page content get rendered the same way mustache did so you can use {{config.}} or {{#str}} tags or anything else.

## Installing via uploaded ZIP file ##

1. Log in to your Moodle site as an admin and go to _Site administration >
   Plugins > Install plugins_.
2. Upload the ZIP file with the plugin code. You should only be prompted to add
   extra details if your plugin type is not automatically detected.
3. Check the plugin validation report and finish the installation.

## Installing manually ##

The plugin can be also installed by putting the contents of this directory to

    {your/moodle/dirroot}/local/pg

Afterwards, log in to your Moodle site as an admin and go to _Site administration >
Notifications_ to complete the installation.

Alternatively, you can run

    $ php admin/cli/upgrade.php

to complete the installation from the command line.

## License ##

2025 Mohammad Farouk <phun.for.physics@gmail.com>

This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.  See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with
this program.  If not, see <https://www.gnu.org/licenses/>;.

Screenshots

Screenshot #0

Contributors

Mohammad Farouk (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Parādīt komentārus
  • Plugins bot
    otrd., 2025. gada 1. jūl.., 17:19
    Approval issue created: CONTRIB-9964
  • Thierry VINCENT
    trešd., 2025. gada 23. jūl.., 18:15
    Bonjour,
    Module interessant mais je ne comprends pas comment l'utiliser !
  • Mohammad Farouk
    ceturtd., 2025. gada 24. jūl.., 12:12
    Hello
    You can navigate to site administration->reports->Pages
    And click add page
  • Thierry VINCENT
    ceturtd., 2025. gada 24. jūl.., 15:24
    Merci beaucoup pour cette précision. Cordialement.
Please login to post comments