Skip to content

Template Element Layout does not support custom module paths #10714

Answered by brandonkelly
BenParizek asked this question in Ideas
Discussion options

You must be logged in to vote

Just added a new craft\fieldlayoutelements\Html field layout element class, which you can use in field layouts that aren’t meant to be user-editable, rather than Template. Pass whatever HTML you want into its constructor, which could originate from a template if you want:

new Html($html)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@brandonkelly
Comment options

Answer selected by brandonkelly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants