# How would one use/extend EssentialsListComponent to allow easy specification of constraints on fetched documents through the CMS component editor?

**URL:** <https://community.bloomreach.com/t/how-would-one-use-extend-essentialslistcomponent-to-allow-easy-specification-of-constraints-on-fetched-documents-through-the-cms-component-editor/1652>\
**Category:** Experience Manager (PaaS/OnPrem)\
**Created:** [December 30, 2019, 9:24am UTC](https://community.bloomreach.com/t/how-would-one-use-extend-essentialslistcomponent-to-allow-easy-specification-of-constraints-on-fetched-documents-through-the-cms-component-editor/1652 "2019-12-30T09:24:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![effortnottalent](https://avatars.discourse-cdn.com/v4/letter/e/0ea827/32.png) [@effortnottalent](https://community.bloomreach.com/u/effortnottalent)\
**Post date:** [December 30, 2019, 9:24am UTC](https://community.bloomreach.com/t/how-would-one-use-extend-essentialslistcomponent-to-allow-easy-specification-of-constraints-on-fetched-documents-through-the-cms-component-editor/1652/1 "2019-12-30T09:24:15Z")

</div>

I’d like content authors to use the EssentialsListComponent in pages to show a grid of documents, but I’d also allow them to specify constraints on the documents without me writing subclasses of EssentialsListComponent to satisfy their constraints.

Examples of constraints would include filtering documents where a value was contained within a property of the document, so not using the free text search.

I’ve tried looking through the documentation but have been unable to find how I could do this using existing components.

---

<div class="post-metadata">

**Author:** ![effortnottalent](https://avatars.discourse-cdn.com/v4/letter/e/0ea827/32.png) [@effortnottalent](https://community.bloomreach.com/u/effortnottalent)\
**Post date:** [December 30, 2019, 9:49am UTC](https://community.bloomreach.com/t/how-would-one-use-extend-essentialslistcomponent-to-allow-easy-specification-of-constraints-on-fetched-documents-through-the-cms-component-editor/1652/2 "2019-12-30T09:49:04Z")

</div>

Found the answer - you can expose a String field on the Info class to add a JCR-170 expression to the filter via `Filter#addJCRExpression(String)`.
