I have three link buttons in the header of the homepage. I want to make the text and link data of these buttons editable by the author, but I don’t want to use a ContentCollection node where the author first needs to add these three link buttons. These buttons should have been already added via the template.
Unfortunately I haven’t found yet a solution for such a static include of custom content elements (not added via the admin interface). I have tried to define a child node in the NodeTypes.yaml with the “LinkButton” as type (instead of ContentCollection), but then I somehow could not edit the data of the node in the admin interface.
Therefore I just have added now a “buttonLinks” ContentCollection node and added these LinkButon content elements, which works so far.
Thanks @hphoeksma for your input! I have done it this way and it works
I just thought to somehow simplify the Content Editing for the author so that the author just specifically can edit these pieces of data without first having to add these “Button link” elements, because they are statically defined by the design and won’t change.