Skip to content
This repository has been archived by the owner on May 15, 2018. It is now read-only.
/ FFFields Public archive

Craft CMS fields for the front-end. Very very WIP.

License

Notifications You must be signed in to change notification settings

joshangell/FFFields

Repository files navigation

FFFields

Craft CMS fields for the front-end.

Usage

This is all you need to get a field layout in your front end templates:

{% includeCssFile resourceUrl('fffields/dist/main.css') %}

<form method="post" accept-charset="UTF-8">
  {{ getCsrfInput() }}
  <input type="hidden" name="action" value="entries/saveEntry">
  <input type="hidden" name="entryId" value="{{ entry.id }}">
  
  {{ craft.fffields.render(entry) }}
  
  <button type="submit" class="ui button">Save</button>
</form>

{% includeJsFile resourceUrl('fffields/dist/main.js') %}