Hi All,
I have a custom template called "Postbit Extras" which I have being called at hook location "postbit_display_complete" as per below:-
Code:
$templater = vB_Template::create('postbit_extras');
$templater->register('postbit_extras ', $postbit_extras);
$template_hook['postbit_userinfo_right_after_posts'] .= $templater->render();
and also have a plugin to cache the template called Postbit Extras Cached being called at "cache_templates"
Code:
$cache[] = 'postbit_extras';
Can anyone help a n00b? If anyone can, it'd be much appreciated!
However, when I try and call a userfield it doesn't display
IE
Code:
<vb:if condition="$post['fieldX']"><dt>Custom Field</dt> <dd>{vb:raw post.fieldX}</dd></vb:if>
It works if I place this code in the postbit template, but it will not work through my called template. My custom template works if I have static text in it.
Any help would be greatly appreciated!