Skip to content

Commit

Permalink
docs: add use case to reference urls directly in dims (#14)
Browse files Browse the repository at this point in the history
* chore: fix typo

* docs: add use case of accessing urls directly
  • Loading branch information
joaoviana authored Dec 30, 2024
1 parent 4bcccad commit c1effca
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/guides/filtering-dashboard-in-url.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import DashboardURLFilter from './assets/dashboard-url-filter.png';

# Filtering a Dashbaord in the URL
# Filtering a Dashboard in the URL

In this guide you'll learn how to format a dashboard URL to apply dynamic values to saved filters on that dashbaord. You can even set up a dimension so when you click on it you are sent to a dashboard that gets filtered based on the dimension you clicked!

Expand Down
19 changes: 17 additions & 2 deletions docs/references/dimensions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -367,8 +367,23 @@ This example would look like this in the sidebar:
## URLs
Lightdash users can interact with dimension values by clicking on them. By adding custom `urls` you can configure
the actions available to your users. Like linking to external tools, or taking actions in other tools.
Lightdash users can interact with dimension values by clicking on them.
If you're already storing URLs in your models, you can create hyperlinks to those URLs in Lightdash, like so:
```yaml
columns:
- name: candidate_profile_url
label: URL of the candidate profile
meta:
dimension:
urls:
- label: Open in CRM
url: ${ value.raw }
```
### How to add custom URLs to dimensions
By adding custom `urls` you can configure the actions available to your users. Like linking to external tools, or taking actions in other tools.


<img
src={ClickableDimension}
Expand Down

0 comments on commit c1effca

Please sign in to comment.