diff options
Diffstat (limited to 'mod/pages/view.php')
-rw-r--r-- | mod/pages/view.php | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/mod/pages/view.php b/mod/pages/view.php index 19f7c8227..69ae5686c 100644 --- a/mod/pages/view.php +++ b/mod/pages/view.php @@ -21,14 +21,17 @@ if (!$container) { $title = $page->title; -elgg_push_breadcrumb($container->name, $container->getURL()); +if (elgg_instanceof($container, 'group')) { + elgg_push_breadcrumb($container->name, "pg/pages/group/$container->guid/owner"); +} else { + elgg_push_breadcrumb($container->name, "pg/pages/owner/$container->username"); +} +pages_prepare_parent_breadcrumbs($page); elgg_push_breadcrumb($title); $content = elgg_view_entity($page, true); $content .= elgg_view_comments($page); -$sidebar = elgg_view('pages/sidebar/tree', array('page' => $page)); - $buttons = ''; if ($page->canEdit()) { $url = "pg/pages/add/$page->guid"; @@ -44,7 +47,7 @@ $body = elgg_view_layout('content', array( 'buttons' => $buttons, 'content' => $content, 'title' => $title, - 'sidebar' => $sidebar, + 'sidebar' => elgg_view('pages/sidebar/navigation'), )); echo elgg_view_page($title, $body); |