Filter on Tags on Xentags

Discussion in 'Other' started by Arms, Mar 29, 2014.

  1. Arms

    Arms New Member


    I'm learning Xf development and atm i'm trying to extend a function of Xentags.

    I'm looking to do filter thread list by tag.

    function _getDisplayConditions(array $forum)
    $displayConditions parent::_getDisplayConditions($forum);
    $tag_id $this->_input->filterSingle('tag_id'XenForo_Input::UINT);
                if (
    $displayConditions['tag_id'] = $tag_id;

    But which way would you suggest would be best.

    Left join the xf_tinhte_xentag_tag table to xf_thread

    or use the data in the tinhte_xentag_tags field.

    I'm not very experienced so excuse me if this seems basic.
  2. xfrocks

    xfrocks XenForo rocks!
    Staff Member

    If you want to use query, probably best to join xf_tinhte_xentag_tag.
    The data in the field is hard to process in SQL.