
General plugins (Local): 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.
How can I make this?
Thank u.
moodle/user:editownprofile
Place this into the page edit text area called "Capability required".
Now only users that have rights to edit their profile can then view the page.
This will prevent logged out users and guests from having access. (As capabilities can be customized - I highly recommend to check its impact by using another browser to see if logged out users and guests can view the page (Logged out users will be taken straight to the login page, Guest users will see a message "You do not have rights to view this page").
Warning:
Don't use legacy capabilities - Moodle will not like that and the page will not show - just a warning message instead.
So avoid "moodle/legacy/xxx"
Tip 1:
You can do the reverse permissions - say logged in users are not to see - add an exclamation mark before the capability to become "!moodle/user:editownprofile"
Tip 2:
Multiple permissions can be used - let's say you only want logged in users and NOT Managers to view the page (as an example):
moodle/user:editownprofile, !moodle/user:editprofile (Place a comma between the different capabilities to create your own view filter)
Tip 3:
Capabilities to use can be viewed at:https://docs.moodle.org/37/en/index.php?title=Category:Capabilities - there are lots to choose from.
You can give roles in Moodle a certain capability and enter that same capability here to restrict pages access to just that role.
e.g.: moodle/badges:createbadge
Give that capability to a role that can create badges - then create a page for instructions and images that you want to use for badges.
That way only uses that can create badges can access the page.
cheers
I am getting those errors on 3.7.1 fresh install:
You don't have permission to access /local/pages/edit.php on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
Any pointer?
Thanks,
Wz
Im using CLEANURL plugin, to clean the URLs of the entire site. Since you have a htaccess file for clean url also, i have noticed the clean url is not working on the page i have created. is it CLEANURLS plugin conflict to this plugin? When you mouseover to the link it appears the clean url but when you visit the link the url it returned to original url with ID. Can you please help me to fix this.
Another thing, i have noticed the URL canonically order when i visit the child page eg. sitename/local/pages/parent-page/child-page.
Cheers,
Emman
Is it possible to add a recaptcha to a form page? I am getting a lot of spam through it!
Thanks
Thank you for this plugin!
Is there a way to get it out of the navigation block? Also: When I add it to the header's block, it tells me I do not have the rights to see the content.
Where do I find the permission to allow users to see the contact form I have just made?
Thanks in advance!
Is it possible to set the user Email Address as the Reply-To on a contact form email? Currently if I hit reply on an enquiry form email, it replies to myself.