Skip to content
Discussion options

You must be logged in to vote

Category and Tags in BlogPost are fields not parts,

Let's deconsturct the template tokens to better understand

BlogPost
[ContentType] is BlogPost
[PartType] is BlogPost (implicit part for Category and Tags fields added to content type)
[DisplayType] is Detail means it doesn't use [DisplayType] is ignred in templates

Category
[FieldName] is Category
[FieldType] is TaxonomyField
[ShapeType] is TaxonomyField
[DisplayMode] is Standard means it doesn't use DisplayMode templates

Tags
[FieldName] is Tags
[FieldType] is TaxonomyField
[ShapeType] is TaxonomyField
[DisplayMode] is Tags means uses DisplayMode templates.


this templates work:

  • BlogPost-Category.cshtml

This works because it maps to […

Replies: 4 comments 2 replies

Comment options

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

Answer selected by aaronamm
Comment options

You must be logged in to vote
0 replies
Comment options

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

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants