diff --git a/Resources/doc/article-view-document.md b/Resources/doc/article-view-document.md index cbef11626..64df3d9cf 100644 --- a/Resources/doc/article-view-document.md +++ b/Resources/doc/article-view-document.md @@ -28,6 +28,7 @@ is requested (content-types, smart-content, ...). | targetWebspace | string | Recommended webspace key | | mainWebspace | string | Configured main webspace | | additionalWebspaces | string[] | Configured additional webspaces | +| contentFields | string[] | Contains content properties tagged with `sulu.search.field` | The `content` and `view` property is represented by a proxy to avoid resolving data where it is not needed. @@ -125,3 +126,21 @@ class ArticleIndexListener ``` + +### ContentFields + +The content of the property `contentFields` can be customized. All properties which are tagged with +`sulu.search.field` in the xml configuration, are automatically added to this field. The main purpose of this field +is to give the developer enough data and flexibility to implement search functionality via e.g. a `SearchController`. + +Example: +```xml + + + Text + Text + + + + +```