home User Guide Getting Started Help Center Documentation Community Training Certification
menu
close
settings
Looker keyboard_arrow_down
language keyboard_arrow_down
English
Français
Deutsch
日本語
search
print
Understanding Other Project Files

A Looker project consists of one or more model files, one or more view files, and possibly the following types of files as well:

An in-depth explanation of model and view files is given on the Understanding Model and View Files documentation page. The rest of the file types are described in the sections below.

For information on accessing a project’s files, see the Accessing and Editing Project Information documentation page.

Project files are organized by your Looker developers using folders in the IDE.

Dashboard Files

Looker supports two types of dashboards:

If your project contains LookML dashboards, they will be defined in dedicated dashboard files in the IDE.

For more information on LookML dashboards, see the Creating LookML Dashboards documentation page.

Document Files

Looker document files let you write documentation or other notes about your Looker data model using GitHub-flavored markdown. This can be helpful for your users to become acquainted with how your organization uses Looker.

Creating Document Files

To add a document file to your project:

After you create a file you can edit it by clicking Edit in the upper right. Then you can preview your changes by clicking Preview, or save your changes by clicking Save.

Viewing the Document Outside the IDE

To see a document outside the IDE, which you will need to do to take advantage of the navigation features described below, choose the View Document option from the drop-down menu in the upper left:

You can distribute the URL of the resulting page to other users so that they don’t need to navigate through Looker’s developer section to reach it.

Adding a Navigation Structure to Your Document

You can add a sidebar to your document files so that users can easily see the structure of the information and navigate between documents:

To add sidebar navigation for a document, create a navigation section starting on the first line of the document. Mark the start and end of your navigation section with three dashes (---).

You can use the following parameters in the navigation section:

navigation

At the minimum, you can use navigation: true on a document to add the navigation sidebar to that document. Here’s how it looks in a markdown file:

This adds to the document a navigation sidebar with links to all of the project’s documentation pages. If you include only navigation: true in a document, the sidebar of that document lists all the project’s documentation pages in alphabetical order by filename.

Also, you might find that organizing by alphabetical filename is not ideal, or you may have some documents you don’t want to show in a page’s navigation:

If you want to change the order of files in a document’s navigation sidebar, or if you want to show only a subset of your documents in the sidebar, you can use this format:

---
navigation:
  - document_one
  - document_two
  - document_three
---

So now the page will show only the files you want, and in an order that makes more sense:

title

By default, the sidebar displays the document’s heading (if the document begins with a heading), or the document’s filename if there is no heading in the file. You can add a title parameter at the top of a document to change how the document is displayed in navigation sidebars:

---
title: New Title for Users
---

This title will be used as the link text in the navigation sidebars of all documents, unless you specify a different label in the navigation section of document.

label

If you want to change the way a page is listed in a document’s navigation sidebar, you can use the document and label parameters like this:

---
navigation:
  - document_one
  - document: document_two
    label: Customized Label for Document Two
  - section: My Section Name
  - document_three
---

To use the label parameter, you must add the document: before the document filename as shown in this example above. If you are not using a label for a document, do not include document: before the filename.

The label value defines how a document is shown in the document’s sidebar navigation, even if the document to which it refers has its own title parameter.

The above example looks like this in the document’s sidebar:

section

If you want to break the navigation sidebar into sections, you can use the section parameter like this:

---
navigation:
  - document_one
  - document_two
  - section: My Section Name
  - document_three
---

The section parameter adds a section break and a text heading to the sidebar:

The text heading is not a link itself; it does not refer to any of your documentation files.

Data Files

Data files are JSON files with file extension .json, .topojson, or .geojson.

The map_layer parameter enables you to use a JSON file as a custom map that can then be used to plot your data in Looker:

You then use the map_layer_name parameter with a dimension so that you can associate a data value (like “Paris”) with a geographic region on your custom map.

You can edit a JSON file in the LookML IDE and then click Save. For debugging, you can choose View Raw to view the file in raw format. If you have the proper extension to view JSON in your browser, you will also have the option to view the file in a Parsed format:

Adding Data Files

To add a JSON file to your project, use the drag-and-drop feature to upload the file from your computer (see the Uploading Files section on the LookML Project Files documentation page for the procedure).

Project Manifest Files

Your project may contain a project manifest file, which is used for the following:

Model localization is not currently compatible with project import.

Each project can only have one manifest file, and it must be named manifest.lkml and located at the root level of your project’s directory structure and in your Git repo.

Creating a Manifest File

To add a project manifest file to your project, use the Create Project Manifest option from the + menu at the top of the Looker IDE file browser (see the Creating Files section on the LookML Project Files documentation page for the procedure). This will create a manifest.lkml file at the root level of your project’s directory structure. Do not move the manifest file; it needs to be stored at the root level of your directory structure.

The Create Project Manifest option is available only from the + icon at the top of the file browser in the Looker IDE. It is not an option from the folder menus, since the manifest file must be located at the root level of your project’s directory structure.

Also, the Create Project Manifest option is available only if your project doesn’t have a manifest file already, since a project can only have one manifest file.

Manifest Lock Files

Manifest lock files are created automatically when a remote dependency is added to the project manifest file. Looker uses the manifest lock file to track the version of the remote project(s) specified in the manifest file:

Looker developers do not need to create or edit a manifest lock file, since lock files are managed automatically by Looker.

For more information, see the Importing Files from Other Projects documentation page.

Locale Strings Files

If you are localizing your data model you will need to create locale strings files for each locale you wish to localize to, including your default locale (for example, often English in the USA).

Locale strings files list key-value pairs for each label and description that you are localizing in your model. The strings file for each locale should provide that locale’s translation for each label or description. More information about creating locale strings files appears on the Localizing Your LookML Model documentation page.

Creating Locale Strings Files

If you are creating locale strings files to localize your model and would also like to take advantage of Looker’s native UI localization, you must name your strings files using specific locale codes that can be found in the Locale section of our Users documentation page.

To create a locale strings file in your project:

Explore Files

Explores are usually defined within a model file. However, sometimes you need a separate Explore file for an NDT, or to extend or refine an Explore across models.

Explore files have the file extension .explore.lkml.

Creating Explore Files

To create an Explore file in your project:

When creating Explore files:

Data Test Files

Your project may have data test files used for verifying the logic of your LookML model. Data tests can be contained in model files or in view files, but if your developers want to use the same data tests across several different models, it may be helpful to keep the data tests in their own, dedicated file.

Creating Data Test Files

To create a data test file in your project:

When creating data test files:

Refinements Files

Your project may have files used for LookML refinements. LookML refinements can be contained in model, view, or explore files, or in their own, dedicated file.

Creating Refinements Files

To create a refinements file in your project:

When creating refinements files:

Other Files

Many LookML elements can be housed in different files in your project, or in their own dedicated files. For example, data tests can be housed in model files, view files, or their own dedicated .lkml files.

Creating Generic LookML Files

To create a generic LookML file in your project:

Once you create the file, be sure to use the include parameter to make your new file available for referencing in other files in your project.

Top