Metadata Target Types
Metadata is Data which describes or adds information to other data. For this to work, Entities which are Metadata store the ID of the Target. In addition, they must know what Target Type this ID describes, because an ID like 20503 could be in use in many systems.
The Target Type is a simple number and all known Target-Types are stored in the SQL-Database. Any Target-Type number from 1-100 are reserved for 2sxc/EAV predefined types, any number above 100 you can define yourself for your use case.
Reserved / Built-In Target-Types
The following list are internally reserved Target-Types
- Anything with 1 (or 0) is defined as not being Metadata
- Attribute/Property Metadata - key should be number
- App Metadata - key should be number (AppId)
- Entity-Metadata - key should be guid of entity
- Content-Type Metadata - key should be string static-name
- Zone Metadata
- Scope Metadata
- Dimension (Language) Metadata
- Reserved
- CMS-Item (like
file:72
orpage:42
) - key should be string - System Metadata
- Site Metadata
- Reserved
- Page Metadata
- Reserved
- Module Metadata
- Reserved
- User Metadata
19
-89
are Reserved90
Custom Metadata target - for your most common custom target that only you care about91
Custom1 - additional custom target for your own use, only your app cares about this92
Custom2 - ...93
Custom394
Custom495
Custom596
Custom697
Custom798
Custom899
Custom9100
Reserved101
+ is free to define for your own purpose, but ATM you probably shouldn't use them
See also
Custom Target Types
You can easily add custom types as you need them in the SQL database yourself. Just make sure your type-id is greater than 100.
History
- Introduced in 2sxc v2
- The 100 top numbers reserved for 2sxc in 2sxc v5