Customize Page plugin

Hello,

Using Elgg 2.3.14 I'm trying to customize the menu for Pages entities. I'm able to successfully do this with other entity types such as blogs, comments, thewire by first checking the entity type like:

if (elgg_instanceof($entity, 'object', 'thewire')) { 
    do something 
}
if (elgg_instanceof($entity, 'object', 'pages')) { 
    do something 
}

It doesn't work for 'page' or 'pages'. How can I find that subtype name of the entity?

I can see in the start.php for pages:

// Register entity type for search   
elgg_register_entity_type('object', 'page');   
elgg_register_entity_type('object', 'page_top');
Beginning Developers

Beginning Developers

This space is for newcomers, who wish to build a new plugin or to customize an existing one to their liking