Please read through the information about Elgg's view system available at http://docs.elgg.org/. Look for the sections about overriding views.
It's now ok
thanks
Unit Tests are bundled with the Developer Tools plugin. Core unit tests are in the engine folder I believe, so start there.
I would also search in Elgg's developer google mailing group, there were some things mentioned there. And of course on github.
Hi perezj, we have written a plugin that integrates phpunit with elgg. It's main difference from the current testing approach in the fact that it uses a separate test DB (that get's cleaned on every test) instead of the production one. You can see the details in http://research.quanbit.com/2011/11/10/torwards-a-safe-unit-test-suite-in-elgg/ and http://research.quanbit.com/2011/11/25/installing-qbelggtestsforphpunit/, and download it from http://research.quanbit.com/qbelggtestsforphpunit/
We haven't yet posted the plugin here since I'm currently on medical licence, but we will as soon as I can get back to work.
BTW, I forgot to mention that we also replicated the core tests in our plugin to check that it worked ok.
HTH,
Andrés
If you replace elgg_list_entities() with elgg_get_entities() you will have an array of all couchdbs objects. You can then iterate through them and get attributes and metadata, e.g.
foreach ($dbs as $db) {
echo $db->title; // assuming the name of the database is stored as 'title'
echo $db->my_custom_meta;
}
i was wrong this next is the source where i can seee the couchdbs of my group
<?php
$group = $vars['entity'];
$icon = elgg_view_entity_icon($group, 'tiny');
$metadata = elgg_view_menu('entity', array(
'entity' => $group,
'handler' => 'groups',
'sort_by' => 'priority',
'class' => 'elgg-menu-hz',
));
if (elgg_in_context('owner_block') || elgg_in_context('widgets')) {
$metadata = '';
}
if ($vars['full_view']) {
echo elgg_view("groups/profile/profile_block", $vars);
} else {// brief view
$params = array(
'entity' => $group,'metadata' => $metadata,
'subtitle' => $group->briefdescription,
);
$params = $params + $vars;
$list_body = elgg_view('group/elements/summary', $params);
echo elgg_view_image_block($icon, $list_body, $vars);
}
yes it's ok with the for each you have given me 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.