Moodle plugins directory: Local Pages | Moodle.org
Local Pages
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.
I have a problem when I add a block in one of the pages created with your plugin.
The block is placed on ALL pages of the plugin.
I use moodle 3.9
Thanks for your help
Are any ideas how can I fix it? Thank you so much!
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
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.
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.
Thanks and regards,
fabio
Exception - count(): Argument #1 ($value) must be of type Countable|array, null given
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.
Moodle 4.3
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:[];