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

 
moosh replied on at Permalink Reply
moosh
You need to use getVersionApproverUserName() method of CollectionVersion Class
tailorweb replied on at Permalink Reply
Thanks for the reply moosh

which variable can I access the CollectionVersion object?
moosh replied on at Permalink Best Answer Reply
moosh
Humm..

Try this :

$c = Page::getCurrentPage();
$cvo= $c->getVersionObject();
$approver = $cvo->getVersionApproverUserName();
echo $approver;
tailorweb replied on at Permalink Reply
Thanks moosh

it works perfect, you just saved my hair from getting pulled

This website stores cookies on your computer. These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media. To find out more about the cookies we use, see our Privacy Policy.