Recommend this page to a friend! |
Classes of fathurrahman | mnTemplate | public/asset/vendor/select2/docs/plugins/error/README.md | Download |
|
![]() Grav Error Plugin
This plugin is required and you'll find it in any package distributed that contains Grav. If you decide to clone Grav from GitHub you will most likely want to install this. InstallationInstalling the Error plugin can be done in one of two ways. Our GPM (Grav Package Manager) installation method enables you to quickly and easily install the plugin with a simple terminal command, while the manual method enables you to do so via a zip file. GPM Installation (Preferred)The simplest way to install this plugin is via the Grav Package Manager (GPM) through your system's Terminal (also called the command line). From the root of your Grav install type:
This will install the Error plugin into your Manual InstallationTo install this plugin, just download the zip version of this repository and unzip it under You should now have all the plugin files under
>> NOTE: This plugin is a modular component for Grav which requires Grav, the Problems plugin, and a theme to be installed in order to operate. UsageThe Something you might want to do is to override the look and feel of the error page, and with Grav it is super easy. TemplateCopy the template file error.html.twig into the
You can now edit the override and tweak it however you prefer. PageCopy the page file error.md into the
You can now edit the override and tweak it however you prefer. Custom error pagesThe configuration allows to specify pages different than CLI UsageThe Commands| UpdatingAs development for the Error plugin continues, new versions may become available that add additional features and functionality, improve compatibility with newer Grav releases, and generally provide a better user experience. Updating Error is easy, and can be done through Grav's GPM system, as well as manually. GPM Update (Preferred)The simplest way to update this plugin is via the Grav Package Manager (GPM). You can do this with this by navigating to the root directory of your Grav install using your system's Terminal (also called command line) and typing the following:
This command will check your Grav install to see if your Error plugin is due for an update. If a newer release is found, you will be asked whether or not you wish to update. To continue, type Manual UpdateManually updating Error is pretty simple. Here is what you will need to do to get this done:
> Note: Any changes you have made to any of the files listed under this directory will also be removed and replaced by the new set. Any files located elsewhere (for example a YAML settings file placed in |