I'm modifying page_top to create a different subtype. It works fine, except when I click the pages tab... then I get a crash. It appears to be at mymodname/pages/pages/world.php
I'm changing this part of the code
$content = elgg_list_entities(array(
'type' => 'object',
'subtype' => 'page_top',
'full_view' => false,
));
into:
$content = elgg_list_entities(array(
'type' => 'object',
'subtype' => 'page_world',
'full_view' => false,
));
So I'm trying to get a of list of the page_world objects... but this causes a crash. If I change page_world, to any type of gibberish, there's no crash... and it says no pages found... so it seems to be detecting my page_world subtype. I have my page_world.php file located in views/default/object
What do I need to do to fix this?
Appreciate any help. Thanks.
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.
- Matt Beckett@Beck24
Matt Beckett - 0 likes
- ameetnsharma@ameetnsharma
ameetnsharma - 0 likes
You must log in to post replies.Did you register 'page_world' as a valid subtype?
http://reference.elgg.org/entities_8php.html#ac4941cde36cde32db55dec05f4a8af44
Hi Matt. I found the bug. It was my object/page_world.php file... It turns out full-view was ok, but the summary view had problems. I've fixed the problem now.
Thanks.