How to pass parameters to a dashboards meta data (title and output-file)? #10374
-
DescriptionI would like to produce multiple dashboards, each with custom text in the title and the output-file name, which are passed by the parameter option(or similar) when running quarto render eg `quarto render -P zone:"example_text" While the Parameter option works well for parameters within the body of the analysis, it doesn't seem to work for the meta data. Similarly Variables, Meta and Env, allow for placing text in the metadata but not in a parameterized manner that allows multiple dashboards from multiple inputs. Below is my document code. Any solutions or ideas are welcome. ---
title: Zone name - {{< meta params.zone >}}
author: ''
subtitle: Zonal Profile
title-block-banner: '#1B657C'
output-file: {{< meta params.zone >}}
lightbox: true
format:
dashboard:
logo: input/logo.svg
include-in-header:
text: <link rel="icon" type="image/x-icon" href="favicon.ico">
orientation: columns
theme:
- input/Cluster.scss
---
# Page 1
### Column {width="65%"}
#### Row {.tabset}
##### Tab 1
test1
```{python}
#| tags: [parameters]
zone = "testZone"
``` |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
A discussion on this is here It seems that Profiles can achieve what I'm looking for. |
Beta Was this translation helpful? Give feedback.
There are multiple threads already discussing this extensively.
And many more.