Skip to content

Instantly share code, notes, and snippets.

@itsmattsoria
Last active February 6, 2023 21:48
Show Gist options
  • Save itsmattsoria/07938c4914e2cfcf2f7976a818b2854d to your computer and use it in GitHub Desktop.
Save itsmattsoria/07938c4914e2cfcf2f7976a818b2854d to your computer and use it in GitHub Desktop.
Display Neo block description in block in admin

1) Add a new template to your project in the templates dir with the following in it:

{{ element.type.description | markdown }}

2) Add a description to your NEO block type:

3) Add a "Template" UI Element to the Field Layout of the block:

Screen-Shot-2023-02-06-15-32-52

4) Double click on that field to edit its settings and add the path to the template you created:

Screen-Shot-2023-02-06-15-35-23

5) Save and go use the block in an entry, and see your description appear:

Screen-Shot-2023-02-06-15-38-12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment