Skip to content

Commit 5866ecd

Browse files
Remove default rendering if sub-navigation
** Why are these changes being introduced: * The standard page content template includes a conditional that will render a sub-navigation menu between the page title and the breadcrumb if no Table of Contents block is present in page. During testing so far, this feature has proved confusing; we've decided that it would be cleaner to remove this (at least for now) and recommend that site builders place a Table of Contents themselves if they want a duplicate navigation pathway (beyond what the main navigation will provide) ** Relevant ticket(s): * https://mitlibraries.atlassian.net/browse/post-109 ** How does this address that need: * This removes the conditional within the page content template. ** Document any side effects to this change: * None
1 parent be913a6 commit 5866ecd

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

view/omeka/site/page/show.phtml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,6 @@ if ($activePage) :
1616
<?php endif; ?>
1717
<?php endif; ?>
1818

19-
<?php if ($activePage) : ?>
20-
<?php if ($this->displayNavigation && $activePage['page']->hasPages()) : ?>
21-
<nav class="sub-menu"><?php echo $nav->menu()->renderSubMenu(); ?></nav>
22-
<?php endif; ?>
23-
<?php endif; ?>
24-
2519
<?php $this->trigger('view.show.before'); ?>
2620
<div class="blocks">
2721
<?php echo $this->content; ?>

0 commit comments

Comments
 (0)