• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Get HELPER from Resources

kalco

Active member
#1
Hi guys,
I need a little help...
So i develop a custom add-on who read content from resource_forum_list_sidebar .
I do well, but i can't get the prefixes.

In Listener.php add this:
PHP:
    public static function dependencies(XenForo_Dependencies_Abstract $dependencies, array $data)
    {
        XenForo_Template_Helper_Core::$helperCallbacks['resourceprefix'] = array('XenResource_ViewPublic_Helper_Resource', 'getResourcePrefixTitle');

    }
In template use

PHP:
{xen:helper resourcePrefix, $resource}
But nothing happens.

Can i make a custom Helper to read just prefixes (without link to prefix group) just show prefix (without any link)?
Same as Top Resources sidebar.

Regards,