Add entry author meta field in entries listing table in CP? In CP Craft Admin in the entries table view I d like to display some authors meta info.
How could I do that in my plugin?
I know public function modifyEntryTableAttributes(&amp;$attributes, $source) and public function getEntryTableAttributeHtml(EntryModel $entry, $attribute)and but I cannot make it work.
You're on the right track with both of those. First, modifyEntryTableAttributes.


  Gives plugins a chance to modify the table columns shown on the entry index page.


This lets you name the column for your author info. It's a hook, so you'll need to add a public method with the same name as that that to your main plugin class. You can also limit the column to particular section by checking the $source variable.

public function modifyEntryTableAttributes(&amp;$attributes, $source)
{
    if ($source == 'section:3')
    {
        $attributes['author'] = Craft::t('Author');
    }
}


Then to actually return the information, you need getEntryTableAttributeHtml.


  Gives plugins a chance to customize the HTML of the table cells on the entry index page.


Here you can just check for the attribute you set above, and return a string.

public function getEntryTableAttributeHtml(EntryModel $entry, $attribute)
{
    if ($attribute == 'author')
    {
        return $entry-&gt;getAuthor()-&gt;getFriendlyName();
    }
}