Reputation: 83
Is there anyone knows how one can create a custom image tag that add a text to the rendition in Wagtail? I couldn't see anything on this in the document. tnx
Upvotes: 0
Views: 334
Reputation: 25292
The process for defining custom tags in Django is described at https://docs.djangoproject.com/en/2.1/howto/custom-template-tags/ ; this could be used to implement a tag that calls Wagtail's {% image %}
tag along with outputting your desired text.
Upvotes: 0