Custom fields #110
-
|
I am working on my first theme in Version 2 Beta. I would like to add additional meta data (like markdown frontmatter) to one of my content types. E.g., the page title is a person's name. I want a subtitle that has their business name. This is a simple example, but if I was able to add multiple custom fields that would be fantastic. Just adding a Using a custom variable with UI field in the editor would be great, but I can't find any documentation that suggests that's possible (maybe it's not). Most importantly - the editor (not developer) should be able to add this information in the UI. If it's not possible, any suggestion how I could rig the supported types to achieve something similar? Maybe a custom block or component? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Hi there, sure is that possible. You can add somewhere in the template a variable as follows: The UI will then show a new field named The type of field is controlled by its name. You can find more details about variables in the current v1 docs. Templates work the same in both versions. |
Beta Was this translation helpful? Give feedback.
Hi there, sure is that possible. You can add somewhere in the template a variable as follows:
The UI will then show a new field named
Person Title.The type of field is controlled by its name. You can find more details about variables in the current v1 docs. Templates work the same in both versions.