omeka-s-themes / freedom

An Omeka S Theme
GNU General Public License v3.0
2 stars 3 forks source link

Allow secondary navigation to be disabled #27

Closed alexdryden closed 5 months ago

alexdryden commented 5 months ago

Pages with a large number of children end up with a secondary navigation that takes up a significant amount of space:

Screenshot 2024-05-31 at 5 08 32 PM

User would like the option to minimize, move, or eliminate the secondary navigation. If any of those options are something you'd entertain, I would be happy to submit a pull request.

allanaaa commented 5 months ago

If it's helpful, you can remove this navigation by adding a "Table of contents" page block to each of the pages where it appears. This allows you to customize the placement on the page.

https://omeka.org/s/docs/user-manual/sites/site_pages/#table-of-contents

You could also use the CSS Editor to do things like, set the .sub-menu or the TOC block (.block-tableOfContents) to display:none, if you want them to disappear completely. Or use the new 4.1 block class setting to modify some but not all of the TOC blocks.

https://omeka.org/s/docs/user-manual/sites/site_pages/#block-settings

alexdryden commented 5 months ago

Thanks, @allanaaa! We have been holding off on installing the Custom CSS module because we think it might encourage more customization requests than we want to manage, but it sounds like the 4.1 display features + the ToC block will solve this issue for us, and your response resolves this issue.

To remove the sub-menu altogether without the CSS module, I think we will just create a "Disable Sub Nav" block using the same implementation that ToC uses to remove the submenu.

Many thanks for the quick response!