Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

suggestion. -include option #13

Open
coastgnu opened this issue Sep 8, 2018 · 4 comments
Open

suggestion. -include option #13

coastgnu opened this issue Sep 8, 2018 · 4 comments

Comments

@coastgnu
Copy link

coastgnu commented Sep 8, 2018

An -includeoption would be fine.

E. g. template:sprintdoc works like a charm with catlist for a dynamic Menu in the sidebar

As you can see at "https://demo.sprintdoc.de/sidebar" they have a menu structure which doesn't follow a given namespace:

===== Dokumentationspatterns @book-open-page-variant.svg =====

  * [[pattern:start|Dokumentationsmuster]]
  * [[usecase:start|Dokumentationsvorgänge]]
  * [[patterns:help:anleitung|Dokumentation Patternanpassung]]

T use catlist for such a case an option -include:":patterns:help:anleitung" would solve this.

Your catlist also works like a charm with template:bootstrap3.
The indexmenu plugin doesn't, it breaks <datatable> and others. So catlist is a good replacement for indexmenu in template:bootstrap.

thank you for this plugin!

regards,
thomas

@xif-fr
Copy link
Owner

xif-fr commented Sep 9, 2018

Ok, so you want to be able to include, at the root of the tree, any page / namespace ?

@fwolfst
Copy link
Contributor

fwolfst commented Jan 25, 2021

Ok, so you want to be able to include, at the root of the tree, any page / namespace ?

From my understanding it doesnt have to be the root of the tree, but included and sorted as if it were under the same namespace. As the sorting criteria would require some configuration to cover many cases, a -prepend and -append option already might be great (-include sounds more like -merge to me).

@xif-fr
Copy link
Owner

xif-fr commented Jan 25, 2021

I still have a hard time understanding what is needed, could you provide an example quickly ?

@fwolfst
Copy link
Contributor

fwolfst commented Jan 26, 2021

I'll try.

:root
├── :instructions
│   ├── scuba
│   └── wingcopter
└── :machines
    ├── spacearm
    └── wingcopter

<catlist :root:instructions> would create an insctructions list with scuba + wingcopter as children.

OP wanted <catlist :root:instructions -include :machines:spacearm> to create an instructions list with scuba + wingcopter + spacearm as children.

I also have the usecase where I'd like to include a few (sometimes just one) items in a sidebar menu which are not in the given namespace.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants