# Send msg.topic from template node

**URL:** <https://discourse.nodered.org/t/send-msg-topic-from-template-node/22608>\
**Category:** Dashboard\
**Created:** [4 March 2020 10:22 UTC](https://discourse.nodered.org/t/send-msg-topic-from-template-node/22608 "2020-03-04T10:22:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chaos](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/chaos/32/107061_2.png) [@Chaos](https://discourse.nodered.org/u/Chaos)\
**Post date:** [4 March 2020 10:22 UTC](https://discourse.nodered.org/t/send-msg-topic-from-template-node/22608/1 "2020-03-04T10:22:45Z")

</div>

Hi i have a simple template node that displays different icons depending on its input and if clicked sends an output. How do i get it to send the msg.topic as well as the payload.

```auto
<md-button ng-click="send({payload: false})" class="filled rounded" style = "background-color:{{msg.color}}"> 
   
   <div class="fa {{msg.icon}}" ></div>
</md-button>

```

the above works ok but i've tried all sorts to send a msg.topic along with the payload, i'm sure it can't be that dificult ?  
Thanks Chris

---

<div class="post-metadata">

**Author:** ![afelix](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/afelix/32/9743_2.png) [@afelix](https://discourse.nodered.org/u/afelix)\
**Post date:** [4 March 2020 11:51 UTC](https://discourse.nodered.org/t/send-msg-topic-from-template-node/22608/2 "2020-03-04T11:51:36Z")

</div>

Can you show what you’ve tried to send the topic along? Take a look at [https://nodered.org/docs/user-guide/messages](https://nodered.org/docs/user-guide/messages) and see if you understand how the message you’re sending currently works.

---

<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:** [3 April 2020 11:51 UTC](https://discourse.nodered.org/t/send-msg-topic-from-template-node/22608/3 "2020-04-03T11:51:45Z")

</div>

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