Help get page approver name
Permalink 1 user found helpful
I need to display the current page approver's name, anyone know how to do that? thanks
You need to use getVersionApproverUserName() method of CollectionVersion Class
Thanks for the reply moosh
which variable can I access the CollectionVersion object?
which variable can I access the CollectionVersion object?
Humm..
Try this :
Try this :
$c = Page::getCurrentPage(); $cvo= $c->getVersionObject(); $approver = $cvo->getVersionApproverUserName(); echo $approver;
Thanks moosh
it works perfect, you just saved my hair from getting pulled
it works perfect, you just saved my hair from getting pulled