# Get event on singleton and collections list displaying

**URL:** <https://discourse.getcockpit.com/t/get-event-on-singleton-and-collections-list-displaying/2143>\
**Category:** Support\
**Created:** [November 18, 2021, 12:31pm UTC](https://discourse.getcockpit.com/t/get-event-on-singleton-and-collections-list-displaying/2143 "2021-11-18T12:31:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![test\_user](https://avatars.discourse-cdn.com/v4/letter/t/eada6e/32.png) [@test\_user](https://discourse.getcockpit.com/u/test_user)\
**Post date:** [November 18, 2021, 12:31pm UTC](https://discourse.getcockpit.com/t/get-event-on-singleton-and-collections-list-displaying/2143/1 "2021-11-18T12:31:16Z")

</div>

Hi, I am looking for event name when I display singleton list or collections list. I want to change something in list of collections by addons ([http://localhost:8080/singletons](http://localhost:8080/singletons), [http://localhost:8080/collections](http://localhost:8080/collections)).

I found events only for add/update specific entry for example:

` $this->on('collections.entry.aside', function() { //do something });`  
I was trying  
something like: `$this->on('collections'` or `$this->on('collections.aside'` but it not wrk for me.  
Is there any event when I display lists of all collections and singletons or event when display entries of collection.

---

<div class="post-metadata">

**Author:** ![abernh](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/abernh/32/859_2.png) [@abernh](https://discourse.getcockpit.com/u/abernh)\
**Post date:** [November 19, 2021, 10:23pm UTC](https://discourse.getcockpit.com/t/get-event-on-singleton-and-collections-list-displaying/2143/2 "2021-11-19T22:23:40Z")

</div>

Hello @test_user,

when you found a solution to your problem it is never wrong to share it with the community. Others might benefit from it later on.

Best regards and welcome to Cockpit CMS,  
Andread

---

<div class="post-metadata">

**Author:** ![test\_user](https://avatars.discourse-cdn.com/v4/letter/t/eada6e/32.png) [@test\_user](https://discourse.getcockpit.com/u/test_user)\
**Post date:** [December 3, 2021, 10:01am UTC](https://discourse.getcockpit.com/t/get-event-on-singleton-and-collections-list-displaying/2143/3 "2021-12-03T10:01:33Z")

</div>

Ok as I noticed we can trigger our custom events which we can catch later.  
Just add this in the view:  
` @trigger('event.custom.name'])`
