LPH
Well-known member
I'm trying to tie up loose ends from the past few months of bewilderment. Sorry for all of the "dumb" questions.
@Mike helped on the XenForo 1 version and explained getting the prefix title was an echo of code I'd already done. Now, I'm trying to get the prefix title for the thread in XenForo 2. This is what is currently in the method based on @Chris D reply on dynamic avatars earlier and using the templater which has the fnPrefixTitle.
This doesn't give me anything close to a prefix title and I'm thinking this is due to the contentType not being correct or I'm completely on the wrong track.
Can someone please explain what is meant by contentType and what are the options? And if I'm on the right track, then
@Mike helped on the XenForo 1 version and explained getting the prefix title was an echo of code I'd already done. Now, I'm trying to get the prefix title for the thread in XenForo 2. This is what is currently in the method based on @Chris D reply on dynamic avatars earlier and using the templater which has the fnPrefixTitle.
PHP:
$contentType= '';
$prefixTitle = \XF::app()->templater()->fnPrefixTitle( $contentType, $prefix_id, [], false) ;
var_dump($prefixTitle->getName());
This doesn't give me anything close to a prefix title and I'm thinking this is due to the contentType not being correct or I'm completely on the wrong track.
Can someone please explain what is meant by contentType and what are the options? And if I'm on the right track, then