How can I twek this code to choose the goup whom blog posts I want to display on custom index ?
Many thanks ;)
Set the container guid to the group guid value
Something like this ? (1111111 being arbitrary)
<?php
$num = 5;
$context = get_context();
set_context('search');
$content = elgg_list_entities(array('types' => 'object', 'subtypes' => 'blog', 'container_guid' => 111111111, 'limit' => $num, 'full_view' => FALSE, 'pagination' => FALSE));
set_context($context);
echo $content;
if ($content) {
$blogurl = $vars['url'] . "pg/blog/owner/" . page_owner_entity()->username;
echo "<div class=\"widget_more_wrapper\"><a href=\"{$blogurl}\">".elgg_echo('blog:moreblogs')."</a></div>";
}
Is this needed ? :
if ($content) {
$blogurl = $vars['url'] . "pg/blog/owner/" . page_owner_entity()->username;
echo "<div class=\"widget_more_wrapper\"><a href=\"{$blogurl}\">".elgg_echo('blog:moreblogs')."</a></div>";
}
detailed plz.
;-) is this detailed enough ? ? ?
$entity_stats = get_entity_statistics();
?>
<div>
<table>
<?php
foreach ($entity_stats as $k => $entry) {
arsort($entry);
foreach ($entry as $a => $b) {
if ($a == "__base__") {
$a = elgg_echo("item:{$k}");
if (empty($a))
$a = $k;
} else {
if (empty($a)) {
$a = elgg_echo("item:{$k}");
} else {
$a = elgg_echo("item:{$k}:{$a}");
}
if (empty($a)) {
$a = "$k $a";
}
}
echo "{$a}: {$b}";
}
}
?>
wow! impressive mi amigo!
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.