Issue: Only 1 dimension allowed in contentTypes
See original GitHub issueDescribe the bug In case a Frontmatter subentry has to be taken as name of a custom contentType, it won’t work. For example:
FrontMatter
---
title: xxx
subtitle: yyy
photo:
file: my-photo.jpg
name: My Photo
---
Setting
"frontMatter.taxonomy.contentTypes": [
"name": "default",
"previewPath": "/static/photos/",
"fields": [
...
{
"title": "Article preview",
"name": "photo.file",
"type": "image"
}
]
]
Expected behavior Subentries should be noted if they are separated by a period.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:7 (4 by maintainers)
Top Results From Across the Web
The contenttypes framework | Django documentation
Each ContentType instance has methods that allow you to get from a ContentType instance to the model it represents, or to retrieve objects...
Read more >Content-Type - HTTP - MDN Web Docs - Mozilla
The directive consists of 1 to 70 characters from a set of characters (and not ending with white space) known to be very...
Read more >Turn on support for multiple content types in a list or library
Learn how to allow a list or library to accept multiple content types. ... libraries or lists that store different types of documents...
Read more >What are all the possible values for HTTP "Content-Type ...
You can find every content types here: http://www.iana.org/assignments/media-types/media-types.xhtml. The most common types are: Type application:
Read more >HTTP headers | Content-Type - GeeksforGeeks
Read; Discuss(1); Courses; Practice; Video. Improve Article. Save Article. The Content-Type header is used to indicate the media type of the ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This is excellent!
The first integration of the multi-dimensional content-type field support has been added.
In the content type, you can now define it as follows:
When creating the content, it will automatically include the defined fields. From the metadata section in the Front Matter panel, you can perform changes to your article its front matter.
Feel free to test it out in the latest beta version.