[RSS Feed/News] Enhanced Search: index issue with "new" content type

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
Well, xF Nodes entity doesn't have a search handler.
So I added my own for a custom function:
Spoiler
PHP:

Code:
class Node extends AbstractData
{
    public function getEntityWith($forView = false)
    {
        $get = [];
       
        if ($forView)
        {
            $visitor = \XF::visitor();
            $get[] = 'Permissions|' . $visitor->permission_combination_id;
        }
       
        return $get;
    }

    public function getIndexData(Entity $entity)
    {
        if...

Read more

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom