Hi,
I’ve been searching around to find something fit my need, which returning author name of a resource by his id.
I found one but it was for Evolution version. I’m using Revolution and its APIs do seem differently, I’m on API page now to read and fix the authorTime snippet and I’m sinking when diving in. While I’m trying to figure out how to work with modx API, hope that someone here has already had a working solution that might share.
Thanks.
-
- 24,544 Posts
Looks good.
You could also use:
$user = $modx->resource->getOne('EditedBy');
Note the capital letters in "EditedBy".
-
- 24,544 Posts
Wanted: Open source PHP code keyboard for Android phone.