Get singletons by custom API

Hey!
I use with:

cockpit(‘collections’)->find(‘menu’);

To get the menu collections but I also want to get some singletons,
I tried:

cockpit(‘singletons’)->find(‘homepage’)

but I got null, how can I get the singletons?
And also be nice to get link to full cockpit documentation, because Documentation not really help me :slight_smile:

Singletons don’t have a find function. Use cockpit('singletons')->getData('homepage') instead.

PS: For code blocks you can use back-ticks https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet#code

2 Likes

Thank You very much!