SneakyDave
Well-known member
I thought this would be easy, but even with PHPStorm I can't figure out how this code works.
All I'm trying to do is add an additional column from the thread, or post, tables to the list of items displayed on the Approval Queue page.
I thought I'd copy the
But in the
I assume that I need to find a Thread or a Post render() method(?) and see what columns from the database it is pulling, and add my own. Where would I begin to look? Would this be in the Thread or Post Entity classes? Is this some kind of ajax request that makes it harder than it would seem?
All I'm trying to do is add an additional column from the thread, or post, tables to the list of items displayed on the Approval Queue page.
I thought I'd copy the
approval_queue
for my own needs, and extend the XF/Pub/Controller/ApprovalQueue
to provide the template what I need from the thread/post.But in the
approval_queue
template, there is some raw code in there which I can't interpret. This appears to display information about the unapproved content type:
PHP:
{$unapprovedItem.getHandler().render($unapprovedItem)|raw}
I assume that I need to find a Thread or a Post render() method(?) and see what columns from the database it is pulling, and add my own. Where would I begin to look? Would this be in the Thread or Post Entity classes? Is this some kind of ajax request that makes it harder than it would seem?