Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.

How to make a searchable content reference datatype in content fragment model

Avatar

Level 3

We are using content reference datatype field "dam/cfm/models/editor/components/contentreference". We need to make this searchable for the assets similar to pathfield. Could you please help us in doing this customization with all the steps in detail.

1 Reply

Avatar

Administrator

To make a content reference datatype searchable in a content fragment model, you need to do the following:

  1. Open the content fragment model in the Content Fragment Editor.
  2. 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.
  3. 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.
  4. 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:

  1. 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.

  2. 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.

  3. 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.

  4. 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