# \[Solved\] Request for templating capability in the Dashboard Block header

**URL:** <https://forums.losant.com/t/solved-request-for-templating-capability-in-the-dashboard-block-header/566>\
**Category:** Feature Request\
**Created:** [July 28, 2017, 1:53am UTC](https://forums.losant.com/t/solved-request-for-templating-capability-in-the-dashboard-block-header/566 "2017-07-28T01:53:44Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tim\_Hoffman](https://avatars.discourse-cdn.com/v4/letter/t/ebca7d/32.png) [@Tim\_Hoffman](https://forums.losant.com/u/Tim_Hoffman)\
**Post date:** [July 28, 2017, 1:53am UTC](https://forums.losant.com/t/solved-request-for-templating-capability-in-the-dashboard-block-header/566/1 "2017-07-28T01:53:44Z")

</div>

Hi

It would be really good to be able to include some templating in the Block Header Text.

For instance we constantly change the period Time Series graphs and have to remember to chnage the header block to reflect the period.

Being able to include a template {{duration}} {{period}} would be really helpful in ensuring people understand what they are looking at.

Other templates such as the device in a gauge woud be good. I am alwyas putting the device name in the header block of gauges.

Here is an example of what we are always entering in the header

 ![header](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/1X/ed107610946158736ad0848d2f28e977775a1936.PNG)

Thanks

Tim

---

<div class="post-metadata">

**Author:** ![Brandon\_Cannaday](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/brandon_cannaday/32/14_2.png) [@Brandon\_Cannaday](https://forums.losant.com/u/Brandon_Cannaday)\
**Post date:** [July 28, 2017, 4:25pm UTC](https://forums.losant.com/t/solved-request-for-templating-capability-in-the-dashboard-block-header/566/2 "2017-07-28T16:25:02Z")

</div>

That’s a really good feature request. I just realized I’m also always updating the header every time I change the duration.

---

<div class="post-metadata">

**Author:** ![Dylan\_Schuster](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/dylan_schuster/32/2850_2.png) [@Dylan\_Schuster](https://forums.losant.com/u/Dylan_Schuster)\
**Post date:** [September 6, 2017, 6:44pm UTC](https://forums.losant.com/t/solved-request-for-templating-capability-in-the-dashboard-block-header/566/3 "2017-09-06T18:44:07Z")

</div>

@Tim_Hoffman we just released a feature allowing users to [change duration and resolution on the fly](https://docs.losant.com/dashboards/time-series-graph/#changing-graph-time-ranges). As a byproduct of that, the currently displayed duration and resolution now displays in the time series block header (except for streaming blocks). I believe this resolves your issue!

---

<div class="post-metadata">

**Author:** ![Dylan\_Schuster](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/dylan_schuster/32/2850_2.png) [@Dylan\_Schuster](https://forums.losant.com/u/Dylan_Schuster)\
**Post date:** [September 6, 2017, 6:46pm UTC](https://forums.losant.com/t/solved-request-for-templating-capability-in-the-dashboard-block-header/566/4 "2017-09-06T18:46:26Z")

</div>

I should also point out that it is now possible to add `{{ config.duration }}` or `{{ config.resolution }}` in the time series block headers (along with formatting helpers) to depict the default values for the block. Note, however, that if you change the duration and resolution in the on-the-fly dropdown, the values in your header text will still reflect the block’s default settings.

---

<div class="post-metadata">

**Author:** ![Jose\_Cruz](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/jose_cruz/32/1580_2.png) [@Jose\_Cruz](https://forums.losant.com/u/Jose_Cruz)\
**Post date:** [August 21, 2019, 4:34am UTC](https://forums.losant.com/t/solved-request-for-templating-capability-in-the-dashboard-block-header/566/5 "2019-08-21T04:34:35Z")

</div>

Is this still not a feature? I know this is a 2 year old topic, but I find myself changing the dashboard block header text to match the ‘variable’ _sensInfo_ name of the sensor. I have, both, tags and data tables for various ‘name’ manipulations in the workflow and other areas, but I came up with the same question 2 years later… it would be awesome if block headers could be ‘templatable’ with, either, tags or payload/table data values…for example:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/2X/c/cc848d072584c96f550fb85e795bbc9e9900f2c8.png)  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/2X/d/db17b8160591e29d199c8f7cb4794447202c6fe2.png)

Couldn’t confirm from this post if this got to be a ‘feature’ or not. If not, here’s a good suggestion; food for thought 🙂 🔴

---

<div class="post-metadata">

**Author:** ![anaptfox](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/anaptfox/32/873_2.png) [@anaptfox](https://forums.losant.com/u/anaptfox)\
**Post date:** [August 21, 2019, 1:40pm UTC](https://forums.losant.com/t/solved-request-for-templating-capability-in-the-dashboard-block-header/566/6 "2019-08-21T13:40:26Z")

</div>

Hey @Jose_Cruz,

This has become a feature see Dylans comment from above:

> [@Dylan\_Schuster](#):
>
> I should also point out that it is now possible to add `{{ config.duration }}` or `{{ config.resolution }}` in the time series block headers (along with formatting helpers) to depict the default values for the block.

You also have access to [Context Variables](https://docs.losant.com/dashboards/context-variables/) within the block headers.

Example:

 ![42%20AM](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/2X/6/69037de819a05bb2e2fe2070b90ec7c1791c272b.png) ![53%20AM](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/2X/1/1613b8712c6c02e8aeb4247071edbe4e7ca00520.png)

If you aren’t using Context Variables yet, I’d highly recommend it. There is a [Losant Univerity](https://www.losant.com/university) course on this topic.

---

<div class="post-metadata">

**Author:** ![anaptfox](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/anaptfox/32/873_2.png) [@anaptfox](https://forums.losant.com/u/anaptfox)\
**Post date:** [August 21, 2019, 2:02pm UTC](https://forums.losant.com/t/solved-request-for-templating-capability-in-the-dashboard-block-header/566/7 "2019-08-21T14:02:43Z")

</div>

Closed on August 21, 2019, 2:02pm UTC


