--- title: Coveo File Result Template slug: '3034' canonical_url: https://docs.coveo.com/en/3034/ collection: coveo-for-sitecore-v5 source_format: adoc --- # Coveo File Result Template > **Legacy feature** > > The Coveo Hive Framework is now in maintenance mode and is no longer recommended for new implementations. > > To build new search experiences, use one of Coveo's more modern, lightweight, and responsive libraries. > To get started, see the [Build search](https://docs.coveo.com/en/2473/) article. ![Coveo for Sitecore Specific Rendering](c4sc-v5/sitecore-20-px-new.png) Provides a [Coveo JavaScript Search Framework](https://docs.coveo.com/en/187/) Underscore.js result template for [Coveo Results List](https://docs.coveo.com/en/3036/) and [Coveo Omnibox Result List](https://docs.coveo.com/en/3070/) renderings using an on-disk `.cshtml` file. ## Usage notes * The **{doctitle}** rendering data source must reference the result template `.cshtml` filename. Save your result template `.cshtml` file in the `\Coveo\Hive\templates` folder. * For more result template content details and examples, refer to the [Edit the content of a result template](https://docs.coveo.com/en/2834/) article. * Typical search interface result sections contain several result template renderings (whether **Coveo Item Result Template** renderings, **Coveo File Result Template** renderings, or a combination of both) with conditions that determine the template a result item will use. The order of your result template renderings in the `Result Templates` placeholder is important (see [Result template conditions](https://docs.coveo.com/en/2173#result-template-conditions)). ## Insertion location

Coveo Hive

The Coveo File Result Template rendering is an Allowed Control in the following placeholder(s): Result Templates

Example insertion sequence for the Coveo File Result Template rendering.

Coveo Hive SXA

When you add the Coveo Results List SXA rendering, this adds a coveouiresulttemplatessxa placeholder. Insert your Coveo File Result Template renderings in this coveouiresulttemplatessxa placeholder.

Example insertion sequence for the Coveo File Result Template rendering.
## Data source options The following table lists the available data source options for this rendering. [%header,cols="33%,66%"] |=== |Option name |Description |File template name |Filename, minus the extension, of the `.cshtml` result template file. |Display in mobile mode |Defines whether to show the template when the user is in mobile mode. |Display in tablet mode |Defines whether to show the template when the user is in tablet mode. |Display in desktop mode |Defines whether to show the template when the user is in desktop mode. |Result layout |Defines whether the template should only be used only in a `Card` layout, only in a `List` layout, or in both. |Template based conditions |Specifies the Sitecore templates that will use this result template. |Field value based conditions |Specifies Coveo field name and value conditions a search result must meet, in addition to the template-based conditions, for this result template to be used. |DOM unique ID a|{empty} -- Randomly generated HTML element ID. -- |=== ## Sample generated HTML and corresponding visual output Consider a situation where you create separate result templates for your `Books` Sitecore template items, and your `Author` Sitecore template items. Using a `Template based condition` in your **Coveo File Result Template** rendering data sources, each rendering would generate outputs similar to the following. ```xml ``` ![Result templates Versus Conditions | Coveo for Sitecore 5](https://docs.coveo.com/en/assets/images/c4sc-v5/tolkien-hobbit-items-in-result-templates.png)