Musings
ExpressionEngine plugin - retrieve custom field info in your templates (saef)
14th January 2010
This plugin will let you retrieve all custom field info for use in stand alone entry forms or anywhere else. If the field has options there’s a variable pair for that. There’s no restriction on formatting either so you’re free to use it how you will.
The project is available on GitHub publicly, feel free to donate via Pledgie if you have the inclination!
Example usage for a text field
{exp:linssen_saef_field name="my_text_field"}
<p><label for="{id}">{label}</label><br />
<input type="text" name="{id}" id="{id}" value="" />
</p>
{/exp:linssen_saef_field}
Example usage for a relationship field:
{exp:linssen_saef_field name="my_relationship_field"}
<p><label for="{id}">{label}</label><br />
<select name="{id}" id="{id}">
{options}<option value="{value}">{name}</option>{/options}
</select>
</p>
{/exp:linssen_saef_field}
Discuss
Get involved in the discussion by using the comment form below.
2nd March 2010
this sounds too good to be true!
will be testing this, tomorrow…
just a quick question: will it display {field_instructions} texts aswell?
cheers
stefan
2nd March 2010
@outline4 ask and ‘ye shall receive. I’ve updated the GitHub page to include field_instructions. Just use the single variable {instructions}.
2nd March 2010
*lol* this is GREAT!
caugh… one thing I always missed in saef is the pendant to solspace’s form helper plugin’s field_parser, and categories… but I’m a saef noob and maybe there’s other solutions to do this kind of thing…
I will be heavily depend on your relationship field function! thanks!
hh
25th February 2010
nice