Using Fields in Data URLs
Customize URLs for data items
EXPERIENCE MANAGEMENT > DATA
You can include fields of certain types in custom data URLs.
You can select a field the value of which will be used in data URLs when creating or editing a datatype.
What fields can be used in data URLs?
You can only select the fields that meet these two requirements:
|
•
|
It must be required (not optional) |
|
•
|
It must be one of these types: |
|
•
|
String (up to 128 characters) |
Selecting fields for data URLs
|
1.
|
Create or edit a datatype. |
|
2.
|
On the Basics tab, add or edit a field of one of the supported types (see above). |
|
3.
|
Make sure the field is not optional. |
|
4.
|
On the Advanced tab, below Data URL, check Use in data URLs. |
|
5.
|
When necessary, in the Order drop-down list, select the field position in the data URL, For more information, see Order of fields in data URLs below). |
|
6.
|
If the field is of the Date type, select the date format, if necessary. For more information, see Format for Date fields in data URLs. |
|
7.
|
Repeat Steps 2-6 for as many fields as you need. |
|
8.
|
Save your modifications. |
Order of fields in data URLs
If you are using more that one field in data URLs, you can also choose the order the fields should appear the data URL relative to each other.
For example, if you've chosen fields "Id" and "Title" for data URLs, you can choose between these two options:
Format for Date fields in data URLs
If you are using a field of the Date type in data URLs, you can also select one of the predefined date formats for it:
Data reference fields in data URLs
If you are using data reference fields for data URLs, bear in mind that by default the raw value of the data reference is applied. This a key field value which might be a GUID, or a random 8- or 4-character string.
If the referenced datatype has data URL setup, too, it will be injected into resulting URL instead.
For example, the "Label" field can be used instead of an ID to display a reference field in a data URL.