Building a menu using categories and sections

3 コメント

  • Kay
    コメントアクション Permalink

    Tyson Voigtlander 

    This should be possible by looping thru the sections property see these developer docs.

    0
  • Tyson Voigtlander
    コメントアクション Permalink

    Kay Thanks for the reply. I am not really sure what the markup would like like to achieve this kind of menu. Do you know of any examples out there that might point me in the right track?

    0
  • Abdul Qabiz
    コメントアクション Permalink

    It’s doable using API. You might also need to cache API response to avoid unnecessary requests. There is API rate limiting in place.

    You can basically fetch all sections with categories as sideloads; and then load articles inside the section.

    It requires some effort and doable.

    You can look at one of our plugins shows a persistent sidebar with similar hierarchy. A good example can be seen at https://support.ddisystem.com/hc/en-us/sections/360003692554-Navigation.

    You can also look at another example: https://help.figma.com

    The approach is same, the UI is different - you want it in header.

    Thank you

    Abdul Qabiz

    Team Diziana

    0

サインインしてコメントを残してください。

Powered by Zendesk