Local Pages

Local plugins ::: local_pages
Maintained by Kevin Dibble, Learning Works
This plugin is to enable Custom pages and forms in Moodle. It provides a quick way to create custom contact forms and custom page content. The pages created can be publicly accessed or available to certain users based on settings you choose for the page. This allows you to create pages such as: "terms and conditions", marketing material and more.
Latest release:
930 sites
204 downloads
63 fans
Current versions available: 1
Purpose:

This plugin is to enable custom pages and forms in Moodle.

The Pages Plugin provides a quick way to create custom forms and custom page content.

By default, all pages created can be publicly accessed.

To control page access, to logged in users or users with certain capabilities, this is controlled in the page Editor.

Forms:

Local Pages support forms that can send email and will keep a viewable history of all emails sent.

Menus:

Pages supports a tree structure and will display in the Navigation menu if "Show in menu" is checked.

Page Urls:

If your server supports .htaccess files - you can enable clean urls instead of page id numbers. 

This is ideal if you wish to use any pages with Google for tracking user engagement.

Installation:

Install the plugin into your local Moodle under /Local/pages/

Adding and managing pages:

In Moodle under Site Administration -> plugins -> local plugins->pages will be the links to add new pages and edit the plugin settings.

Screenshots

Screenshot #0

Contributors

Kevin Dibble (Lead maintainer)
Learning Works: Developer
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • dan g
    Fri, 2 Apr 2021, 3:26 PM
    I have 4 independent pages (with no parent), each has 2 images, they seem to be sharing embedded files, this means I can't use images with the same name on each page (they would get overwritten), each page will tell me 6 images are not being used, while the images are being used on the other 3 pages, if I remove an image from one page I could break other page. Is there a way to fix this? I'm on 3.8. Less important but I also have the bug where I deleted a page, purged cache and the page is still accessible.
  • Дмитрий Гогешвили
    Wed, 20 Oct 2021, 10:36 PM
    Hello! Im using v3.11 and when I try to create page I got an error "Исключение - count(): Argument #1 ($var) must be of type Countable|array, null given"
    Are any ideas how can I fix it? Thank you so much!
  • Дмитрий Гогешвили
    Fri, 22 Oct 2021, 2:10 AM
    "Hello! Im using v3.11 and when I try to create page I got an error "Исключение - count(): Argument #1 ($var) must be of type Countable|array, null given"
    Are any ideas how can I fix it? Thank you so much!"
    _________________________________
    it is not working on php 8.0
    and works on php 7.4
  • ceiler Gomez Lopez
    Fri, 10 Dec 2021, 4:39 AM
    Hello, where can I get or download this plugin in its version v1.8, I have Moodle 3.8.9 installed. Thanks
  • Ana Carolina Nunes dos Santos
    Sat, 15 Oct 2022, 12:32 AM
    Hello, the plugin is very interesting, Congratulations!
    But, I would like to know if it would be possible to open conditional fields.
    I need students to complete the course, which will call the local field, which will call the area of ​​expertise.
  • Annie H.
    Wed, 18 Jan 2023, 4:45 AM
    Hello,
    i have installed lical pages, so far fine. however, when i want to create a page, i get the following error message:

    Exception - count(): Argument #1 ($value) must be of type Countable|array, null given

    What do I have to consider or where and how can I fix this error? Thank you very much for a short feedback.
  • Fabio Serenelli
    Fri, 14 Apr 2023, 9:58 PM
    Hello, are you planning to make the plugin compatible with 4.X too?
    Thanks and regards,
    fabio
  • chandan kumar
    Wed, 21 June 2023, 2:28 PM
    throwing this error-
    Exception - count(): Argument #1 ($value) must be of type Countable|array, null given
  • Ricardo Serrano
    Sun, 17 Sept 2023, 7:05 AM
    throwing this error-
    Exception - count(): Argument #1 ($value) must be of type Countable|array, null given
    I have installed the most stable version of Moodle 4.1 and the error is the same, but in version 4.0 it works without a problem.
  • Zoran Jančić
    Fri, 3 Nov 2023, 5:42 PM
    I also get the following exception when trying to add a new page: Exception - count(): Argument #1 ($value) must be of type Countable|array, null given
    Moodle 4.3
  • Developer CK
    Tue, 9 Apr 2024, 2:49 PM
    FOr this : throwing this error-
    Exception - count(): Argument #1 ($value) must be of type Countable|array, null given
    === this is beacuse of php version as moodle 4.1 requires php8.1+
    [Solution]
    you can fix that by putting up the line number 237 under local/pages/forms/edit.php
    $records = is_array($records)?$records:[];
  • DANIEL EDUARDO ROSALES CASTELLANOS
    Tue, 14 May 2024, 5:55 AM
    Error: Excepción - count(): Argument #1 ($value) must be of type Countable|array, null given
    Moodle 3.11 apache 8

    Solution????
  • adrien v
    Mon, 21 Oct 2024, 6:17 AM
    Solution :
    https://github.com/tmayfield-costrack/moodle-local_pages/tree/fix/php-8

    Download the zip version.

    @thanks to Tom Mayfield
  • Meaghan Lister
    Fri, 20 Dec 2024, 4:21 AM
    We have encountered a multi-lingual issue with the title of the page in breadcrumbs and the navigation menu. When we 'add the page' to navigation it does not recognize the mlang codes to allow for multiple languages.

    We know that the multilingual function is partially integrated as the page title (on the top of the browser tab) recognizes this and it functions.

    Is this something that someone knows how to fix by any chance?
  • David Pasadas
    Fri, 3 Jan 2025, 5:33 PM
    Hello
    thx for the great plugin.

    I would like to set the local page that I created as the home page. I tried in appearance > navigation > start page for users. But the page local page doesn't appear in the drop box.
    I don't know how to code but I know how to modify code if given the proper instructions.

    Moodle 4.3.1 with theme boost
    Moodle 4.4 with theme boost union

    Please help smile
1 2 3 4
Please login to post comments