diff options
author | pete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-04-23 09:41:59 +0000 |
---|---|---|
committer | pete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-04-23 09:41:59 +0000 |
commit | 63db1681c560d859e65647068722301ea3b98cc3 (patch) | |
tree | d353ae70fe2627f1f30a4d695299be98309b3b3e /mod/groups | |
parent | 1e349b673ae1aac87c722db9c93a1a68861afc6a (diff) | |
download | elgg-63db1681c560d859e65647068722301ea3b98cc3.tar.gz elgg-63db1681c560d859e65647068722301ea3b98cc3.tar.bz2 |
Completed breadcrumbs for Groups Forums.
git-svn-id: http://code.elgg.org/elgg/trunk@5855 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/groups')
-rw-r--r-- | mod/groups/forum.php | 7 | ||||
-rw-r--r-- | mod/groups/views/default/forum/viewposts.php | 8 |
2 files changed, 12 insertions, 3 deletions
diff --git a/mod/groups/forum.php b/mod/groups/forum.php index f59c3ed30..a19d86a0b 100644 --- a/mod/groups/forum.php +++ b/mod/groups/forum.php @@ -21,9 +21,14 @@ set_context('search'); // set up breadcrumbs - elgg_push_breadcrumb('Parent Group Name'); + $group_guid = get_input('group_guid'); + $group = get_entity($group_guid); + elgg_push_breadcrumb(elgg_echo('groups'), $CONFIG->wwwroot."pg/groups/world/"); + elgg_push_breadcrumb($group->name, $group->getURL()); elgg_push_breadcrumb(elgg_echo('item:object:groupforumtopic')); + $area1 = elgg_view('navigation/breadcrumbs'); + $area1 .= elgg_view("forum/topics", array('topics' => $topics)); set_context('groups'); diff --git a/mod/groups/views/default/forum/viewposts.php b/mod/groups/views/default/forum/viewposts.php index 02ed06b62..0ff70a38a 100644 --- a/mod/groups/views/default/forum/viewposts.php +++ b/mod/groups/views/default/forum/viewposts.php @@ -10,8 +10,12 @@ * @link http://elgg.com/ */ - elgg_push_breadcrumb('', 'Parent Group Name'); - elgg_push_breadcrumb(elgg_echo('item:object:groupforumtopic'), ''); + // set up breadcrumbs + $group_guid = get_input('group_guid'); + $group = get_entity($group_guid); + elgg_push_breadcrumb(elgg_echo('groups'), $CONFIG->wwwroot."pg/groups/world/"); + elgg_push_breadcrumb($group->name, $group->getURL()); + elgg_push_breadcrumb(elgg_echo('item:object:groupforumtopic'), $CONFIG->wwwroot."pg/groups/forum/{$vars['entity']->container_guid}"); elgg_push_breadcrumb($vars['entity']->title); echo elgg_view('navigation/breadcrumbs'); |