Ecotrust / ocs-wp

Worpress Implementation of ODFW's Oregon Conservation Strategy
Other
1 stars 0 forks source link

Create In-Page Sidebar Jump Navigation #17

Closed willthemoor closed 9 years ago

willthemoor commented 9 years ago

Dynamic sidebar will be based on the headers within the page. Links simply jump to that header (ala Wikipedia).

http://bryanbraun.github.io/anchorjs/ or similar should work well.

Should be on all single post templates for all content types including pages.

screen shot 2015-09-07 at 12 38 10 am
ldford commented 9 years ago

Also note that in-page sidebar remains fixed while scrolling. image

image

willthemoor commented 9 years ago

We'll also need to include sub page navigation in this area. After thinking about it, I don't think it needs to be manual at all—it's entirely tied to the page structure. wp_list_pages or something should be fine.

Basic Reqs:

  1. It will only be required for sections with nested page-based content (pretty much all sections of the OCS but not for the CPT views)
  2. If possible, it shouldn't require authors to mess with it (based on page structure)
  3. It should show siblings and immediate descendants but not sibling descendants (CSS hide is a-ok)
  4. The current page parent's name should be output as a header above the sibling page nav
  5. On page jump links should come be inserted after the page navigation with some sort of CSS separator between the two.
  6. 100% positive it's not this cut and dried and will need to be tweaked for certain subsections and scenarios. :)

If there is a way to also include a manually created menu within this area. This

willthemoor commented 9 years ago

This is in place. Think we have more to talk about with regard to UX and design but I'm going to set this ticket to beta and remove high priority.