missing pagination in list generated by elgg_view_entity_list

i am creating a page that renders a standard list of entities from a pre-existing array of entities here.

i have used the code:
            $options = array(
            'offset' => max(get_input('offset'), 0),
            'limit' => 10,
            'full_view' => false,
            'list_type' => 'list',
            'pagination' => true,
        );
    
        $content = elgg_view_entity_list($entity_list, $options);
      }

 

i am seeing that there is no pagination rendered, just one large list (no size limit is applied either)..
anyone know why that may be?
thanks

  • the code is available in the plugin here:
    http://community.elgg.org/plugins/1170905/0.7.1/related-items

    this is the sql part:

            $options = array(
                'type' => 'object',
                'subtypes' => $selectfrom_subtypes,
                'order_by' => 'match_count DESC',
                'group_by' => 'e.guid',
                'limit' => $list_count,
                'offset' => $offset,
                'count' => $count,
                'metadata_names' => 'tags',
                'metadata_case_sensitive' => FALSE,
                'metadata_values' => $this_items_tags,
                'selects' => array('count(msv.string) as match_count'),
                'wheres' => array('guid <> ' . $thisitem->getGUID()), // exclude this item from list.
            );

            if ($limit_by_date == 'yes')
                $options['created_time_lower'] = $created_time_lower;
            if ($selectfrom_owner <> 'all')
                $options['owner_guids'] = $thisitem->getOwner();        
            $items = elgg_get_entities_from_metadata($options); //get list of  entities