{% load cms_tags frontend cms_component %} {# Declare component - template tags are evaluated at project startup and will render empty #} {% cms_component "AutoHeroWithSlots" name=_("My Slotted Hero Auto Component") %} {% field "title" forms.CharField required=True %} {% field "slogan" forms.CharField required=True widget=forms.Textarea %} {% field "hero_image" ImageFormField required=True help_text=_("At least 1024px wide image") %} {# Actual template - when rendering declared fields are available in the context #}

{% inline_field "title" %}

{{ slogan }}

{% childplugins instance "buttons" _("Buttons") %} Add buttons here {% endchildplugins %}