What I'm trying to do is have a page-like entity, associated with an array of items (perhaps other pages, or links... the idea is this array will extend)... But not sure how to do this. This is how the set config is for regular pages:
elgg_set_config('pages', array(
'title' => 'text',
'description' => 'longtext',
'tags' => 'tags',
'parent_guid' => 'parent',
'access_id' => 'access',
'write_access_id' => 'write_access'));
So would I do something like this for my new page entity?
elgg_set_config('new_pages', array(
'title' => 'text',
'description' => 'longtext',
'tags' => 'tags',
'parent_guid' => 'parent',
'access_id' => 'access',
'write_access_id' => 'write_access'),
'listOfLinks' => 'array');
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.
- Team Webgalli@webgalli

Team Webgalli - 0 likes
You must log in to post replies.this snippet of code in the start.php of pages plugin is used to define the form fields of a new page entity. If you want to add a list of links, you need to use either longtext / plaintext or text. See http://docs.elgg.org/ to learn about elgg coding.