To make a content reference datatype searchable in a content fragment model, you need to do the following:
- Open the content fragment model in the Content Fragment Editor.
- In the Properties tab, for the content reference field, set the
Allowed Content Fragment Models
property to the path of the content fragment model that contains the assets you want to make searchable.
- Set the
Accept only specified content types
property to the type of assets you want to make searchable. For example, if you only want to make images searchable, you would set this property to Image
.
- Save the content fragment model.
Once you have done this, the content reference field will be searchable for the assets that match the criteria you specified.
Here are the steps in detail:
-
Open the content fragment model in the Content Fragment Editor.
Go to Tools > Assets > Content Fragment Models.
Double-click the content fragment model that you want to make the content reference datatype searchable in.
-
In the Properties tab, for the content reference field, set the Allowed Content Fragment Models
property to the path of the content fragment model that contains the assets you want to make searchable.
For example, if the content fragment model that contains the assets you want to make searchable is located at /content/dam/my-assets
, you would set the Allowed Content Fragment Models
property to /content/dam/my-assets
.
-
Set the Accept only specified content types
property to the type of assets you want to make searchable. For example, if you only want to make images searchable, you would set this property to Image
.
You can also specify multiple content types by separating them with commas. For example, to make images and documents searchable, you would set this property to Image, Document
.
-
Save the content fragment model.
Click the Save button.
Once you have done this, the content reference field will be searchable for the assets that match the criteria you specified.
Kautuk Sahni