Skip to content

Compatibility with new section editing in DokuWiki Greebo, fix #223#224

Merged
michitux merged 1 commit intomasterfrom
secedit_greebo
Apr 17, 2018
Merged

Compatibility with new section editing in DokuWiki Greebo, fix #223#224
michitux merged 1 commit intomasterfrom
secedit_greebo

Conversation

@michitux
Copy link
Copy Markdown
Member

This is a basic compatibility fix. It would be nice if the edit button of the include plugin (for the whole included page) could also set the hid of the first header but this is not easily possible as that hid is not available globally (for this the code design would need to be changed). Further, the code block count won't be correct when multiple pages are included. This would probably need to be patched when the actual buttons are generated in the action plugin. For this, the actual code block count would need to be determined when scanning the instructions of the page to include (in particular when only a single section is included). I haven't implemented that yet and would move this to a new issue once this has been merged as I think basic compatibility is more important than correct code block counts.

@michitux michitux requested review from Klap-in and lpaulsen93 April 15, 2018 15:57
Copy link
Copy Markdown
Member

@lpaulsen93 lpaulsen93 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good and a simple test (without @splitbrain's workaround in the DokuWiki core) was successful. That means without the changes I saw problems with section edit buttons on included pages and with the changes of this PR applied problems were gone.

@lpaulsen93
Copy link
Copy Markdown
Member

Although the question is if we merge this PR or rely on the workaround in the core?

@michitux
Copy link
Copy Markdown
Member Author

The workaround in the core still triggers an error message, the changes in this PR are necessary to silence them - therefore I will merge them.

@michitux michitux merged commit de79031 into master Apr 17, 2018
@lpaulsen93
Copy link
Copy Markdown
Member

👍

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

Successfully merging this pull request may close these issues.

2 participants