#5 Look at the Content-Type of something
The samples can differ based on your Razor base class or if you're running an old version.
Switch to Typed (2sxc 16+) Selected: Dynamic (Razor14 or below)
Switch to Typed (2sxc 16+) Selected: Dynamic (Razor14 or below)
Look at the Content-Type of something
In some advanced cases you want to find out information about a specific content-type.
⬇️ Result | Source ➡️
- Type Name: "Persons"
- Type Internal Name: "e748cf30-7849-46f1-a331-f181ba047cb2"
- Type of the Awards field: "Entity"
-
Values in the
Sex
field (String) dropdown- Unknown = ''
- Male = 'm'
- Female = 'f'
- Non-binary = 'nb'
View Configuration
This is how this view would be configured for this sample.
- Content/Item ContentType: Persons
- Content/Item Data:
- Douglas (ID: 5338)
Read more about attributes in the docs 🔗
⬇️ 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)
View Configuration
This is how this view would be configured for this sample.
- Content/Item ContentType: Persons
- Content/Item Data:
- Douglas (ID: 5338)
#5 Look at the Content-Type of something