# How to set the UI page title dynamically

**URL:** https://discourse.nodered.org/t/how-to-set-the-ui-page-title-dynamically/77798
**Category:** Dashboard
**Created:** [21 April 2023 16:27 UTC](https://discourse.nodered.org/t/how-to-set-the-ui-page-title-dynamically/77798 "2023-04-21T16:27:00Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Rgrove](https://avatars.discourse-cdn.com/v4/letter/r/5f8ce5/32.png) [@Rgrove](https://discourse.nodered.org/u/Rgrove)
#### Post date: [21 April 2023 16:27 UTC](https://discourse.nodered.org/t/how-to-set-the-ui-page-title-dynamically/77798/1 "2023-04-21T16:27:01Z")

</div>

Hi,

I have a basic/generic flow that I load on every new NodeRed install.

I'd like to add functionality that will change the title of the UI from a node.  
I have a node that pulls the R-Pi system name, so it would be really convenient to have that also dynamically set the NR UI name.

I know this is set manually in the editor or config file, but if I can set it programmatically, it's one less thing to touch (or forget to touch) when I'm rolling out a new project.

I want to set this from a node:  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/6/962b8105b2ee04458811655d4d19ce3ad4b0fe75.png)

So that I can have this automatically programming on deployment/reboot:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/4/649921f1f525157b36f91ce343ee0e16c1ac009a.png)

The flow I'd like to have set it:  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/8/f8bd39b6478e5bd19c6f09f88d4b7467bf41ba7f.png)

Thanks!

---

<div class="post-metadata">

### Author: ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)
#### Post date: [21 April 2023 18:52 UTC](https://discourse.nodered.org/t/how-to-set-the-ui-page-title-dynamically/77798/2 "2023-04-21T18:52:18Z")

</div>

Like many fields in Node-RED you should be able to set it with an external environment variable Eg on my Mac I need to do.

```auto
export MYHOST=$(hostname)

```

then in that site title field I can put  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/7/77cb39222f1d04b25cbe1cd8138c97858b6f5151.png)

---

<div class="post-metadata">

### Author: ![Rgrove](https://avatars.discourse-cdn.com/v4/letter/r/5f8ce5/32.png) [@Rgrove](https://discourse.nodered.org/u/Rgrove)
#### Post date: [22 April 2023 05:21 UTC](https://discourse.nodered.org/t/how-to-set-the-ui-page-title-dynamically/77798/3 "2023-04-22T05:21:17Z")

</div>

Great, thanks. I'll try it tomorrow.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [21 June 2023 05:21 UTC](https://discourse.nodered.org/t/how-to-set-the-ui-page-title-dynamically/77798/4 "2023-06-21T05:21:25Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
