https://github.com/notasausage/statamic-suggestmode-cars
A SuggestMode addon for Statamic 2.x of car manufacturers (makes) from around the world.
https://github.com/notasausage/statamic-suggestmode-cars
statamic statamic-addon statamic-v2
Last synced: 6 days ago
JSON representation
A SuggestMode addon for Statamic 2.x of car manufacturers (makes) from around the world.
- Host: GitHub
- URL: https://github.com/notasausage/statamic-suggestmode-cars
- Owner: notasausage
- License: mit
- Created: 2018-01-11T16:18:23.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-01-11T21:16:55.000Z (over 7 years ago)
- Last Synced: 2025-02-13T08:31:02.690Z (4 months ago)
- Topics: statamic, statamic-addon, statamic-v2
- Language: PHP
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CarMakes: Suggest Mode addon for Statamic 2.x
A custom addon for Statamic 2.x that uses the [Suggest fieldtype](https://docs.statamic.com/fieldtypes/suggest) to select from a list of auto manufacturers, useful for choosing a "make" of a car.## Installing the Addon
Copy the `CarMakes` folder from the repo to the `site/addons` folder in your Statamic 2.x installation.## Using the Suggest Mode
Once installed, modify a fieldset by using Statamic's Suggest fieldtype and setting the `mode` to `CarMakes` manually. This _cannot be done through the Control Panel_ and must be done by editing a YAML file in your `site/settings/fieldsets` folder.```yaml
taxonomies:
tags: true
title: Car
create_title: Add New Car
hide: true
fields:
make:
type: suggest
display: Make
instructions: The manufacturer of the vehicle (Audi, MINI, Chevrolet, etc.)
mode: CarMakes
max_items: 1
model:
type: text
display: Model
instructions: The specific model of the vehicle (S4, Cooper S, Malibu LT, etc.)
```## Things To Do...
* ~~Group manufacturers by country~~
* ~~Sort manufacturers alphabetically~~
* Add all current and past manufacturers