# Device List Block Column Header Template

**URL:** <https://forums.losant.com/t/device-list-block-column-header-template/4570>\
**Category:** Help\
**Tags:** device-list-block\
**Created:** [June 3, 2022, 4:21pm UTC](https://forums.losant.com/t/device-list-block-column-header-template/4570 "2022-06-03T16:21:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stephen\_Earthy](https://avatars.discourse-cdn.com/v4/letter/s/9e8a1a/32.png) [@Stephen\_Earthy](https://forums.losant.com/u/Stephen_Earthy)\
**Post date:** [June 3, 2022, 4:21pm UTC](https://forums.losant.com/t/device-list-block-column-header-template/4570/1 "2022-06-03T16:21:29Z")

</div>

![image](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/2X/b/b2235f50e7217cce85f932e272d56fa78b9513aa.png)  
I was hoping to use a device’s attribute tag for the display name in dashboard lists and other blocks, but the Header template for the column does not seem to recognize the template, but the Row template does recognize the template (in the example ‘Relay Mode’ can be appended to the row value, but the same template does not appear in the header). Is there a way to get an Attribute Tag to display in the header for the column?

---

<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:** [June 3, 2022, 4:47pm UTC](https://forums.losant.com/t/device-list-block-column-header-template/4570/2 "2022-06-03T16:47:46Z")

</div>

The reason is because the Device List Block returns _multiple devices_, so when it comes to using `{{attribute.attributeTags.displayName}}` in a header, which of the returned devices’ value do you use for that tag (which also assumes that the device in question even has that attribute defined on it)?

You’re able to reference the value per row because each individual row in the table represents one device. If you changed your query to return more devices, it would display the unique “displayName” attribute tag as set on each device.

Now, if you were use a [device ID context variable](https://docs.losant.com/dashboards/context-variables/#device-ids) on your dashboard with the “Include full device info in context” checkbox checked, you could reference the value of that device/attribute combination’s “displayName” attribute tag. See attached.

 ![Screen Shot 2022-06-03 at 12.47.03 PM](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/2X/8/838a8ddcd3e56ac3cbb3364eaf664022e8183cf9.jpeg)

---

<div class="post-metadata">

**Author:** ![Stephen\_Earthy](https://avatars.discourse-cdn.com/v4/letter/s/9e8a1a/32.png) [@Stephen\_Earthy](https://forums.losant.com/u/Stephen_Earthy)\
**Post date:** [June 3, 2022, 4:54pm UTC](https://forums.losant.com/t/device-list-block-column-header-template/4570/3 "2022-06-03T16:54:46Z")

</div>

Thanks for the quick response!  
That makes perfect sense and will try the device context variable.  
Thanks again,  
Stephen
