These are a bunch of useful SuggestMode
addons for Statamic v2.x.
Copy the one or more folder(s) to your site/addons
folder in your Statamic v2.x installation
1. Countries
2. State and Provinces
3. Collections
4. Forms
5. Typeforms
List of world country names in ISO format (full English spelling)
To return a list of country names in full English spelling
country:
type: suggest
mode: Countries
param: full
max_items: 1
display: Country (Full English spelling)
To return a list of country names in 2 character abbreviation (ISO2)
country:
type: suggest
mode: Countries
param: iso2
max_items: 1
display: Country (ISO2 abbreviation)
To return a list of country names in 3 character abbreviation (ISO3)
country:
type: suggest
mode: Countries
param: iso3
max_items: 1
display: Country (ISO3 abbreviation)
List of US and Canada states/provinces names (full English spelling)
To return a list of US and Canada states/provinces names in full English spelling
state_province:
type: suggest
mode: StatesProvinces
param: full
max_items: 1
display: State/Province (Full English spelling)
To return a list of US and Canada states/provinces names in 2 character abbreviation
state_province:
type: suggest
mode: StatesProvinces
param: abbr
max_items: 1
display: State/Province (Full English spelling)
List all available collections
To return a list of all your available collections
rss_feed:
type: suggest
mode: Collections
display: RSS Feed
instructions: Select which collection(s) to use for your RSS Feed
List all available forms
To return a list of all your available forms
form:
type: suggest
mode: forms
max_items: 1
display: Form
To output your form automagically
{{ form:create in="{form}" }}
{{ fields }}
<div class="form-group">
<label>{{ display }}</label>
{{ if field == "email" }}
<input type="text" name="{{ field }}" value="{{ old:email }}" class="form-control" />
{{ elseif field == "number" }}
<input type="number" name="{{ field }}" value="{{ old:number }}" class="form-control" />
{{ elseif field == "comment" }}
<textarea name="{{ field }}" class="form-control">{{ old:comment }}</textarea>
{{ else }}
<input type="text" name="{{ field }}" value="{{ old }}" class="form-control" />
{{ /if }}
</div>
{{ /fields }}
<button class="btn btn-primary">Submit</button>
{{ /form:create }}
Fetch list of all available typeforms
To return a list of all your available Typeforms
form:
type: suggest
mode: typeforms
max_items: 1
display: Typeform
api_key: your-api-key
List a filtered set of users
Add a role
and/or a group
parameter to the field.
The value has to be the unique id of the role or group.
user:
type: suggest
mode: UsersFiltered
max_items: 1
display: User
role: roleid
group: groupid
There is a feature request for the core