aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsembrestels <sembrestels@riseup.net>2011-10-13 05:36:07 +0200
committersembrestels <sembrestels@riseup.net>2011-10-13 05:36:07 +0200
commitecd013091b33659c5e944795dda2abce382104b4 (patch)
tree15f7d57d7e6ff36f90e4f8d3af6a3d151644633a
parenta1d02e6f366423ccd1914182807a60b92d240c5b (diff)
downloadelgg-ecd013091b33659c5e944795dda2abce382104b4.tar.gz
elgg-ecd013091b33659c5e944795dda2abce382104b4.tar.bz2
Wiki group profile
-rw-r--r--start.php2
-rw-r--r--views/default/dokuwiki/grouppage.php20
2 files changed, 15 insertions, 7 deletions
diff --git a/start.php b/start.php
index 518d1938c..916109680 100644
--- a/start.php
+++ b/start.php
@@ -28,7 +28,7 @@ function dokuwiki_init(){
add_group_tool_option('dokuwiki_frontsidebar',elgg_echo('groups:enabledokuwiki_frontsidebar'),false);
add_group_tool_option('dokuwiki_frontpage',elgg_echo('groups:enabledokuwiki_frontpage'),false);
- elgg_extend_view('groups/forum_latest','dokuwiki/grouppage');
+ elgg_extend_view('groups/profile/summary','dokuwiki/grouppage');
elgg_extend_view('groups/left_column','dokuwiki/sidebar');
// Extending CSS
diff --git a/views/default/dokuwiki/grouppage.php b/views/default/dokuwiki/grouppage.php
index c5a342ac7..77cc9d104 100644
--- a/views/default/dokuwiki/grouppage.php
+++ b/views/default/dokuwiki/grouppage.php
@@ -1,13 +1,21 @@
<?php
-$group = page_owner_entity();
+$group = elgg_get_page_owner_entity();
$offset = (int)get_input("offset",0);
if ($group->dokuwiki_enable == 'yes' && $group->dokuwiki_frontpage_enable == 'yes') {
- echo '<div class="contentWrapper">';
- set_input("inline_page", true);
- echo elggdokuwiki_page_handler(array($group->guid));
- echo '</div>';
- $count = elgg_get_entities(array('offset'=>$offset,'full_view'=>FALSE,'types'=>'group','container_guid'=>$group->getGUID(),'count'=>TRUE));
+
+ set_input("inline_page", true);
+
+ $all_link = elgg_get_site_url().'dokuwiki/'.$group->guid;
+ $all_text = elgg_echo('viewall');
+ $all_link = "<a href=\"$all_link\">$all_text</a>";
+
+ echo elgg_view('groups/profile/module', array(
+ 'title' => elgg_echo('dokuwiki:group'),
+ 'content' => $none,
+ 'all_link' => $all_link,
+ ));
+ dokuwiki_page_handler(array($group->guid));
}
?>