Hi,
I'm using Elgg 1.7.6. I'm trying to write my own plugin in which on the index page, I can view a list of the custom object I've created. So I have
$area2 .= elgg_list_entities(array('type' => 'object', 'subtype' => 'featured_listings', 'container_guid' => page_owner(), 'limit' => 10, 'offset' => $offset, 'full_view' => FALSE, 'view_type_toggle' => FALSE));
Then, I created this page ...
mod/featured_listings/views/default/object/featured_listings.php
However the content from this page is never getting called. I confirm this because I put a 'die("called");' statement at the top, but no dice.
Any ideas what else I need to do to configure my own custom views for each of my entities? Thanks, - Dave
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- mariano@marianito
mariano - 0 likes
- Trajan@Trajan
Trajan - 0 likes
- Evan Winslow@ewinslow
Evan Winslow - 0 likes
- Evan Winslow@ewinslow
Evan Winslow - 0 likes
You must log in to post replies.creo que es list_entities_from_metadata
Could be a whole number of reasons for that. Need to see more of the code to understand why it isn't working. Are your "featured_listings" objects working fine in other places?
How are they set? As in what makes them "featured"? Most likely that would be metadata so mariano is right. But you probably want this one elgg_list_entities_from_metadata.
Check to make sure the view filepath cache is off.
Check to make sure the view filepath cache is off.