I'm blocked with a very stupid thing...
I have a Collections view with a resource's ID column.
I want to render those IDs with their respective pagetitle.
So I create a snippet called getPagetitleFromID which I call from the Snippet columns view parameter.
But I don't know how to make this snippet code.
I read a little bit xPDO docs but I was a little bit affraid !!!
For now, I have just wrote this but it doesn't work :
$value = $modx->resource->getOne('value');
return $value->get('pagetitle');
Is anyone can help me ?