Register a custom DataProvider to filter pages by their template ================================================================ The ``smart_content`` content type allows for the configuration of a ``provider`` param, which is used for gathering the items that are passed to the twig template. As described in :doc:`/reference/content-types/smart_content`, Sulu comes with a few included providers and also allows to implement new ones to load custom entities. In some cases, it might be useful to register an additional provider for pages that only returns pages that use a specific template or include a property with a specific value. This is possible by registering a new instance of the ``PageDataProvider`` included in Sulu that uses a custom ``QueryBuilder`` implementation. To do this, the following changes are required: **1. Implement a custom ``QueryBuilder`` class that adds conditions** .. code-block:: php Product Pages