redimp / otterwiki

A minimalistic wiki powered by python, markdown and git.
https://otterwiki.com
MIT License
202 stars 22 forks source link

Nested nav menu #70

Closed garymcnamara closed 4 months ago

garymcnamara commented 6 months ago

It would be great to be able to navigate content via nested menus. Initially it can just be 'parent/child' directory, according to how the pages are created.

Long term, one solution could be:

When creating a new page, select it's parent page and sort order. If no parent page is defined, the page is considered top of the directory tree Sort order field is numerical only. Sort order starts from 1 (0 reserved for home / root, at very top if tree). Form input is validated to numerics only. No upper numerical value for sort order. If no sort order is specified, enter a default value of 1 Nav bar sorts parent --> child relationships first numerically, then alphabetically

redimp commented 6 months ago

Hey @garymcnamara, thanks for the suggestion.

in https://github.com/redimp/otterwiki/discussions/60#discussioncomment-7804440 was discussed that the left sidebar could hold the page/directory tree.

Does this match what you propose? (With the additional feature to have the option of putting an extra sorting to the elements)

garymcnamara commented 6 months ago

Thank you for your response.

Reading issue #60 - yes, that persons suggestion is exactly what I was thinking; nested menus like confluence. I would also suggest a mechanism to apply a custom sort order to pages within a subdirectory. Perhaps a config.md file in each directory containing the sort order.


From: Ralph Thesen @.> Sent: 03 January 2024 21:17 To: redimp/otterwiki @.> Cc: Gary McNamara @.>; Mention @.> Subject: Re: [redimp/otterwiki] Nested nav menu (Issue #70)

Hey @garymcnamarahttps://github.com/garymcnamara, thanks for the suggestion.

in #60 (reply in thread)https://github.com/redimp/otterwiki/discussions/60#discussioncomment-7804440 was discussed that the left sidebar could hold the page/directory tree.

Does this match what you propose? (With the additional feature to have the option of putting an extra sorting to the elements)

— Reply to this email directly, view it on GitHubhttps://github.com/redimp/otterwiki/issues/70#issuecomment-1875984537, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AA5IWKOEKUF24FQ56RHBQ3DYMXDHFAVCNFSM6AAAAABBKCZFCKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZVHE4DINJTG4. You are receiving this because you were mentioned.Message ID: @.***>

Hello,

redimp commented 5 months ago

The nested Menu in the sidebar is in development. Preview:

image

redimp commented 4 months ago

Available in 2.1.0..