You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{% hook 'cheatSheetTemplate' %}
{% if fieldInfo is defined %}
{% for pluginField in fieldInfo %}
{{ csMacro.codeBlock(pluginField.title, pluginField.code, pluginField.helpText) }}
{% endfor %}
{% else %}
{# final no results html block #}
{% endif %}
Then plugin devs could use the init() method to modify the template context like so:
Consider adding in a template hook for 3rd party devs to inject their own fieldtype sample code into the template.
http://buildwithcraft.com/classreference/services/TemplatesService#hook-detail
Then plugin devs could use the
init()
method to modify the template context like so:The text was updated successfully, but these errors were encountered: