-
-
⬇️ Result | Source ➡️
-
First Name
(FirstName,
String
= typeId 6)
-
Last Name
(LastName,
String
= typeId 6)
-
Birthday
(Birthday,
DateTime
= typeId 2)
-
Mugshot
(Mugshot,
Hyperlink
= typeId 4)
-
Awards
(Awards,
Entity
= typeId 3)
-
Sex
(Sex,
String
= typeId 6)
-
FavoriteNumber
(FavoriteNumber,
Number
= typeId 5)
-
IsAlive
(IsAlive,
Boolean
= typeId 1)
-
Haters
(Haters,
Entity
= typeId 3)
-
Biography
(Biography,
String
= typeId 6)
>
@inherits Custom.Hybrid.Razor14
@{
var type = AsEntity(Content).Type;
}
<ul>
@foreach (var attr in type.Attributes) {
<li>
@* This will get the label from the metadata entity *@
@(attr.Metadata.GetBestValue<string>("Name", "@All"))
(@attr.Name, <code>@attr.Type</code> = typeId @((int)attr.Type))
</li>
}
</ul>>
View Configuration
This is how this view would be configured for this sample.
- Content/Item ContentType: Persons
- Content/Item Data:
- Douglas (ID: 48832)