Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ethercreative/utility-belt
A collection of things we use on every Craft CMS site
https://github.com/ethercreative/utility-belt
Last synced: about 2 months ago
JSON representation
A collection of things we use on every Craft CMS site
- Host: GitHub
- URL: https://github.com/ethercreative/utility-belt
- Owner: ethercreative
- License: gpl-3.0
- Created: 2022-03-11T11:22:40.000Z (almost 3 years ago)
- Default Branch: v4
- Last Pushed: 2024-06-06T11:33:33.000Z (7 months ago)
- Last Synced: 2024-10-13T22:35:44.502Z (3 months ago)
- Language: PHP
- Size: 769 KB
- Stars: 1
- Watchers: 6
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
![](./resources/high-q-utility-belt-banner-FINAL_FINAL_FINAL-2.png)
# 🛠Utility Belt
A collection of things we use on every Craft CMS site## Features
### SEO
Automatically installs [ether/seo](https://github.com/ether/seo) and creates a default SEO field.
### Logs
Automatically installs [ether/logs](https://github.com/ether/logs).
### Live Preview
Locks the default live preview target to the `api/preview` Next JS endpoint.
Requires the `FRONTEND_URL` env var.### Revalidator
Adds dynamic Next JS revalidation support. Uses the section URI and any
additionally defined revalidate URI's (see a Section settings in Craft CP).
Calls the `api/revalidate` Next JS endpoint.Requires the `FRONTEND_URL` env var.
Requires the `REVALIDATE_TOKEN` env var, that must match the token on the frontend.### Internal URLs
Converts any absolute internal urls (based off `href^=@web`) to relative URIs.
### Inline SVGs
Assets with the `.svg` extension will return the contents of the SVG in the `svg` field on the asset in GraphQL.
### Twig Dashboard Widget
A new dashboard widget that renders the given twig template.
### Link Field
A simple but powerful link field for creating links to internal elements, external URLs, custom URI's or emails.## Environment Variables
```dotenv
FRONTEND_URL=http://localhost:3000
REVALIDATE_TOKEN=unique-secret-token-shared-with-frontend
```