elgg_list_entities using 'item_view' (Elgg 3.0)

I read the article on altering the view for elgg_list_entities using 'item_view'. (Source: http://learn.elgg.org/en/stable/guides/views.html#rendering-a-list-with-an-alternate-view)

I want to make small tweek in the existing layout for my plugin. Which file do I need to refer for the layout so that i can clone it and make some alternation?

  • Please, explain about your 'small tweak' - what do you want to do?

  • by small tweak i mean that I want to change it to a custom layout.

    Example: I want to change the layout of my internship plugin as below

  • Anyways, I figured out the view.. thanks for the help..

    $user = elgg_get_logged_in_user_entity();
    	if (!$user instanceof \ElggUser || !$user->canEdit()) {
    $entity = elgg_extract('entity', $vars);
      if (!$entity || !($entity instanceof \ElggEntity)) {
    		return false;
    * Do all your customisation here
    * You can customise the following:
    * 'entity'    ElggEntity
    * 'title'     Title link (optional) false = no title, '' = default
    * 'metadata'  HTML for entity menu and metadata (optional)
    * 'subtitle'  HTML for the subtitle (optional)
    * 'tags'      HTML for the tags (default is tags on entity, pass false for no tags)
    * 'content'   HTML for the entity content (optional)
    * 'icon'      Object icon. If set, the listing will be wrapped with an image block
    * 'class'     Class selector for the image block
    * 'image_block_vars' Attributes for the image block wrapper
      $summary = elgg_view('object/elements/summary', [
      	'entity' => $entity,
      	'title' => $title,
    	'metadata' => $menu,
    	/* other customized entries as mentioned above */
      echo elgg_view_image_block($icon, $summary);