First of all I wanted to make it very clear that, I love Cockpit, I just intended to test it and now I’m using it on everything hahaha.
But I have a question, when requesting /collections/get/posts for example, I get the field _by and _mby which in this case, is referring to the ID of the user who created/changed the entry, right?
How do I bring the username instead of the ID? Because, when adding the AccountLink in the entry, it also returns the ID instead of the Name or even the object with some data of the user who created the entry.
Can anyone give me a hand?
Thank you very much in advance!
In a way, it helped me a lot to know about this “populate=1”, I confess that I didn’t know.
I needed to show the Name of a collection called Category, linked as CollectionLink, but the display was just the Slug, and with this “Populate” it worked to show all fields
But with AccountLink, even using “Populate=1”, it doesn’t show the username or any other field, it just returns the ID anyway
This I really thought about doing, but I thought it could be less performant, even more so with a relevant amount of data to consult…
My friend, this is awesome, it worked perfectly for me, and it opened my mind to do other things, it may be my fault, but is there anything in the documentation talking about creating this “bootstrap.php” file? I didn’t think… Anyway, thank you very much, it worked perfectly!