Wildcat Media
Well-known member
Would I still need this 
This is what I'm at right now (template is set up properly as
	
	
	
		
I'm calling it like this in the page node template:
No errors but no output.
I'm familiar with the "dump" function in a template (like
				
			if ($reply instanceof \XF\Mvc\Reply\View) { } loop?  I've tried it both ways.This is what I'm at right now (template is set up properly as
xxxx_post_in_page_showpost):
		PHP:
	
	<?php
namespace XXXX\PostsOnPages;
class xxxxProviders
{
    public static function getData(
        $contents,
        array $params,
        \XF\Template\Templater $templater
    ) {
       
        if ($reply instanceof \XF\Mvc\Reply\View) {
            if (!$threadId) {
                return;
            }
            $thread = \XF::app()->find('XF:Thread', $threadId, ['FirstPost']);
            $post = $thread->FirstPost;
            return $templater->renderTemplate('public:xxxx_post_in_page_showpost', [
                'thread' => $thread,
                'post' => $post
            ]);
        }
    }
}
	I'm calling it like this in the page node template:
<xf:callback class="\XXXX\PostsOnPages\xxxxProviders" method="getData" params="['42307']"></xf:callback>No errors but no output.
I'm familiar with the "dump" function in a template (like
{{ dump($xf) }} or some other variable).