# Comments template

**URL:** <https://forum.inductiveautomation.com/t/comments-template/3483>\
**Category:** General Discussion\
**Created:** [October 24, 2011, 11:12pm UTC](https://forum.inductiveautomation.com/t/comments-template/3483 "2011-10-24T23:12:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Greg.Buehler](https://avatars.discourse-cdn.com/v4/letter/g/ecc23a/32.png) [@Greg.Buehler](https://forum.inductiveautomation.com/u/Greg.Buehler)\
**Post date:** [October 24, 2011, 11:12pm UTC](https://forum.inductiveautomation.com/t/comments-template/3483/1 "2011-10-24T23:12:12Z")

</div>

Seeing as the comments can be confusing to get setup, here’s a template.  
[comments.vwin](https://us1.discourse-cdn.com/inductiveautomation/original/1X/19f9a5ebea27f705c6c9a871eaa73ad1b2713902.vwin) (9.06 KB)  
[comments.sql](https://us1.discourse-cdn.com/inductiveautomation/original/1X/3febdc49b46d2d4668a400ac254a7b8c342330f3.sql) (381 Bytes)

---

<div class="post-metadata">

**Author:** ![Carl.Gould](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/carl.gould/32/7262_2.png) [@Carl.Gould](https://forum.inductiveautomation.com/u/Carl.Gould)\
**Post date:** [October 25, 2011, 6:40pm UTC](https://forum.inductiveautomation.com/t/comments-template/3483/2 "2011-10-25T18:40:35Z")

</div>

Thanks for posting this, I’m sure it will be helpful for others.

---

<div class="post-metadata">

**Author:** ![jsham](https://avatars.discourse-cdn.com/v4/letter/j/ac91a4/32.png) [@jsham](https://forum.inductiveautomation.com/u/jsham)\
**Post date:** [October 26, 2011, 8:09pm UTC](https://forum.inductiveautomation.com/t/comments-template/3483/3 "2011-10-26T20:09:29Z")

</div>

It is helpful! This has proven to be one of the trickier components to master, but also can be very valuable to users.

Now how does this need to be modified to provide a parametrized window that is unique for each parent? Kind of like how the wiki notes template works…

Also, is there an easy to indicate when a new comment has been posted on a per-user basis? Sort of a unread note indicator that clears out once the comment window is opened?

I could probably tinker long enough to implement this… just wondering if anyone has done it already?

---

<div class="post-metadata">

**Author:** ![Greg.Buehler](https://avatars.discourse-cdn.com/v4/letter/g/ecc23a/32.png) [@Greg.Buehler](https://forum.inductiveautomation.com/u/Greg.Buehler)\
**Post date:** [October 26, 2011, 8:12pm UTC](https://forum.inductiveautomation.com/t/comments-template/3483/4 "2011-10-26T20:12:36Z")

</div>

[quote=“jsham”]It is helpful! This has proven to be one of the trickier components to master, but also can be very valuable to users.

Now how does this need to be modified to provide a parametrized window that is unique for each parent? Kind of like how the wiki notes template works…

Also, is there an easy to indicate when a new comment has been posted on a per-user basis? Sort of a unread note indicator that clears out once the comment window is opened?

I could probably tinker long enough to implement this… just wondering if anyone has done it already?[/quote]

You’d need to add some sort of category index to the SQL table and then modify the query properties and the data binding on the comments component to reference a dynamic property.
