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

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') %}