Changing blog "posted by" from editor to page owner

Permalink
Hi,

I'm using the standard C5 blog and I need the "posted by so and so" to be the page owner and not the last person who edited the page. We have writers write the articles and editors edit and approve the post and C5 shows the editors NOT the writers and I'm sure you can imagine the writers not enjoying this.

Thanks for you help!!!

uclageek
 
rbarcus replied on at Permalink Reply
rbarcus
Even though this is an old post, I thought it deserved an answer, just in case someone stumbled across it like I did...

I replaced this code in my blog entry file:

echo ucfirst($c->getVersionObject()->getVersionAuthorUserName());


with this code:

$page = Page::getCurrentPage();
$ui = UserInfo::getByID($page->getCollectionUserID());
echo $ui->getUserName();


and it worked like a charm!