International, Craft-friendly field types.
Clone or download
Latest commit 93480d5 Nov 28, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Adds Github ISSUE_TEMPLATE May 17, 2018
src Updates Predefined Field settings Nov 13, 2018
.gitignore Updates develop to Sprout Fields v3.0.2 Mar 2, 2018
CHANGELOG.md Sprout Fields v3.1.21 Nov 28, 2018
LICENSE.md Updates develop to Sprout Fields v3.0.2 Mar 2, 2018
README.md Fixes link Jul 18, 2018
composer.json Sprout Fields v3.1.21 Nov 28, 2018

README.md

Sprout Fields

Sprout Fields adds several common field types to Craft CMS. Sprout Fields focuses on fields for an international community with a Craft-friendly user experience.

  • Address Field (International)
  • Email Field
  • Gender (Inclusive)
  • Name (International)
  • Notes
  • Phone Field (International)
  • Predefined
  • Regular Expression (Exclusive)
  • URL Field

Front-end Usage

{# Address #}
{{ entry.addressField.countryCode }}
{{ entry.addressField.administrativeArea }}
{{ entry.addressField.locality }}
{{ entry.addressField.postalCode }}
{{ entry.addressField.address1 }}
{{ entry.addressField.address2 }}

{# Email Field #}
{{ entry.emailField }}

{# Gender #}
{{ entry.genderField }}

{# Name #}
{{ entry.nameField.getFriendlyName() }}
{{ entry.nameField.getFullName() }}
{{ entry.nameField.getFullNameExtended() }}

{{ entry.nameField.prefix }}
{{ entry.nameField.firstName }}
{{ entry.nameField.middleName }}
{{ entry.nameField.lastName }}
{{ entry.nameField.suffix }}

{# Phone #}
{{ entry.phoneField.international }}
{{ entry.phoneField.national }}
{{ entry.phoneField.E164 }}
{{ entry.phoneField.RFC3966 }}

{{ entry.phoneField.country }}
{{ entry.phoneField.phone }}
{{ entry.phoneField.code }}

{# Predefined Field #}
{{ entry.predefinedField }}

{# Regular Expression Field #}
{{ entry.regularExpressionField }}

{# URL Field #}
{{ entry.urlField }}

Documentation

See the Sprout Website for documentation, guides, and additional resources.

Support