Skip to content

Instantly share code, notes, and snippets.

@hijonathan
Created December 7, 2010 20:19
Show Gist options
  • Save hijonathan/732342 to your computer and use it in GitHub Desktop.
Save hijonathan/732342 to your computer and use it in GitHub Desktop.
Editable Field Variable Types
<!-- The meta tag: -->
<meta name="text:Your Label" content="Your default content" />
<!-- The variable -->
{{ text:Your Label }}
<!-- The meta tag: -->
<meta name="boolean:Your Label" content="1" />
<!-- The variable -->
{% if boolean:Your Label %}
If yes, do this stuff...
{% else %}
Else, do this...
{% endif %}
<!-- The meta tag: -->
<meta name="upload:Your Label" content="http://www.example.com/file.pdf" />
<!-- The variable -->
{{ upload:Your Label }}
<!-- The meta tag: -->
<meta name="textarea:Your Label" content="Your default content" />
<!-- The variable -->
{{ textarea:Your Label }}
<!-- The meta tag: -->
<meta name="html:Your Label" content="<p>Your Content</p>" />
<!-- The variable -->
{{ html:Your Label }}
<!-- The meta tag: -->
<meta name="image:Your Label" content="http://www.example.com/image.jpg" />
<!-- The variable -->
{{ image:Your Label }}
<!-- The meta tag: -->
<meta name="color:Your Label" content="#FFFFFF" />
<!-- The variable -->
{{ color:Your Label }}
<!-- The meta tag: -->
<meta name="font:Your Label" content="Arial,Helvetica,Futura,Georgia" />
<!-- The variable -->
{{ font:Your Label }}
<!-- The meta tag: -->
<meta name="widget:Your Label" content="" />
<!-- The variable -->
{{ widget:Your Label }}
<!-- The meta tag: -->
<meta name="dropdown:Your Label" content="Item 1, Item 2, Item 3" />
<!-- The variable -->
{{ dropdown:Your Label }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment