-
Notifications
You must be signed in to change notification settings - Fork 17
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
Wiki subpages #11
Comments
This is supposed to be a simple wiki plugin. You're welcome to do a pull request. Most wiki's at least the ones I'm basing off of don't do this (github, taiga, etc). What you can do is a table of contents with the first page. |
I think with my pending reorder feature, you'll be able to add -- (dashes) and do your own subpages this way. I don't really plan to directly support these though. Pull requests are always welcome. I close this issue when the reordering support is finished. |
Okay, thank you. |
This comment was marked as abuse.
This comment was marked as abuse.
Hi there, quite new to Kanboard and its plugins at all. Anyways, on the topic - wiki is an awesome addition to a project management as they go hand in hand - been using quite some of both management and documentation software. And I was going to make that same enhancement request myself as did @bySebastian. Having a fairly complex project that requires Kanboard management in most cases implies that it also requires a fairly complex documentation. Which a flat Wiki structure, even if you can re-order the pages, can hardly comply with. So, no offense, but if there's gonna be a Wiki plugin to the Kanboard, it would be not just great but absolutely necessary to allow for pages hierarchy. Otherwise I think people will just use outer alternatives, in this way breaking the whole integration thing 😕 On the technical side. I haven't dug into the impl, I don't know what is the effort to impl such an enhancement. I can only assume that the data structure and the code for the tasks are reused in order for the wiki to co-exist in the same database and codebase. And regarding that I just wander how complex is it to have each page keep an ordered list of child pages (thus implementing a hierarchy)? And maybe it is possible to impl this by reusing the structure and functionality for the tasks and sub-tasks? It's kinda the same relation - of course on a multilevel page structure this is likely to introduce cycling in the hierarchy that must be handled appropriately. If the whole thing is too much to ask, I guess I'll try to make some hacky workaround to my local copy to cover my needs. I just thought there would be more people interested in an actually structured Wiki. Greetings, |
@imfx77 reorder feature now working. I don't know if I have bandwidth to implement subpages. But prs are always welcome. You can organize with the reorder by adding dashes - to the subpage name and dragging in order preferred. |
@lastlink What I can say, now that I've already gained some experience in making KB plugins is:
Both aspects may grow immensely complex depending on the expected features. So, in the first place, I think some reasonable basic requirements must be strictly defined - such that will serve the needs of most users. And then structural and visual changes can be negotiated, a specific implementation approach considered, and some roadmap planned to deliver smaller chunks of functionality. So, I guess I will first sync my fork, update the Wiki plugin to the latest, and see if it suits me well enough as is. Then when I have some free bandwidth of my own, I can ping back to say if I am still interested in taking over implementing this feature as true subpages. |
Yeah it looks doable. Idk if I'd prefer to do a drop-down button or just display everything. Technically schema wise all you need added is a parentId column. I'm a bit concerned about pagination. If you have more than 50 wiki pages on a project the html dom will be slow on mobile devices |
@imfx77 I almost have it finished in https://github.com/funktechno/kanboard-plugin-wiki/tree/f/subpages |
Wow, you're fast 😮 |
@imfx77 it's finished and working. Has all core features pending website update kanboard/website#512. Nested and dragging all work. Besides styling enhancements should be fully flushed out. If there are requests I could build out the rest api, but there hasn't been much of a demand. |
Unfortunately, it doesn't work here. It always crashes as soon as I want to display a wiki page. Did I miss something?
|
@lastlink I thought it was because of the existing pages that have no parent set, but a new page did trigger the same issue - and its What puzzles me though, is that I don't see any code in Wiki controller or model that sets the Since you've already removed the subpages branch I can't tell if it was working there, I can just suspect that some code might have not been merged properly to the dev/master. Any chance you have some local uncommitted changes? |
I missed a file when checking in changes, I'm updating the release now. see #79 |
@lastlink |
@lastlink |
As far as I can see, KB comes with I would try renaming the export from I think the export is the last line of
|
@imfx77 I have the fix out already. I'll only load the javascript on the details page. |
pending kanboard/website#514 |
This issue is:
Now I can add pages, but it would great to add also some subpages to a page.
E.g.
-- Homepage
-- Detail page
-- Contact page
The text was updated successfully, but these errors were encountered: