Skip to content

[Nonprofit Navigation] Set initial site navigation links #495

Closed

Description

@shascher

When a Nonprofit site is first created, the site navigation (header and footer) includes links to all published pages.

See #467 and Slack Convo for context. This issue requires that we override the core wp navigation array.

Desired

When a Nonprofit site is first created, the site navigation (header and footer) should include links to the Auctions page, About GOODBIDS page, and the Login / My Account button.

Tasks

  • Update navigation links to display the following:
    • About GOODBIDS -> Link to About GOODBIDS page
    • Auctions -> Link to Explore Auctions page
    • Login / My Account button (no change)

Image

Activity

  1. linear commented on Feb 26, 2024

    @linear
    GOO-161 [Nonprofit Navigation] Set initial site navigation links

    When a Nonprofit site is first created, the site navigation (header and footer) includes links to all published pages.

    See #467 and Slack Convo for context. This issue requires that we override the core wp navigation array.

    Desired

    When a Nonprofit site is first created, the site navigation (header and footer) should include links to the Auctions page, About GOODBIDS page, and the Login / My Account button.

    Tasks

    • Update navigation links to display the following:
      • About GOODBIDS -> Link to About GOODBIDS page
      • Auctions -> Link to Explore Auctions page
      • Login / My Account button (no change)

    Image

  2. clatwell commented on Feb 29, 2024

    @clatwell
    Contributor

    @nathan-schmidt-viget - Curious if this might be reasonably quick now that we've figured out the default pages stuff? This would be a huge win to get in tomorrow before admin testing!

  3. nathan-schmidt-viget commented on Feb 29, 2024

    @nathan-schmidt-viget
    Contributor

    @bd-viget so did some more research and it looks like WP is adding an option to render inner blocks inside of core/navigation. But it looks like it is only going to be for WP 6.5

    1. Block Hooks API: Update Navigation block feature gate WordPress/gutenberg#58388
    2. Update Navigation block to render hooked inner blocks WordPress/gutenberg#57754

    Wonder if we can do something similar.

  4. nathan-schmidt-viget commented on Feb 29, 2024

    @nathan-schmidt-viget
    Contributor

    Maybe a bit hacking, but found that we can do the mark up in the view like this and it renders. As well as being editable in Gutenberg. Sooooo we could be able to do the same thing and just input our newly created pages.

    <!-- wp:navigation -->
      <!-- wp:navigation-link {"label":"test","type":"page","id":43,"url":"http://nonprofit.goodbids.vipdev.lndo.site/my-account/","kind":"post-type"} /-->
      <!-- wp:navigation-link {"label":"test","type":"page","id":40,"url":"http://nonprofit.goodbids.vipdev.lndo.site/shop/","kind":"post-type"} /-->
    <!-- /wp:navigation -->
    
  5. added 8 commits that reference this issue on Feb 29, 2024
  6. 7 remaining items

  7. added 3 commits that reference this issue on Mar 5, 2024
  8. added 8 commits that reference this issue on Mar 6, 2024
  9. added a commit that references this issue on Mar 6, 2024
  10. added a commit that references this issue on Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions