create new tag
, view all tags

EditChapterPluginDev Discussion: Page for developer collaboration, enhancement requests, patches and improved versions on EditChapterPlugin contributed by the TWikiCommunity.
• Please let us know what you think of this extension.
• For support, check the existing questions, or ask a new support question in the Support web!
• Please file bug reports in the EditChapterPlugin bug database.

Feedback on EditChapterPlugin

-- MichaelDaum - 03 Jan 2008

It seems that EditChapterPlugin conflicts with SlideShowPlugin. Enabling EditChapterPlugin via the configure script makes the slide shows no longer work. See example slide show. Setting PluginsOrder via configure to SlideShowPlugin first worked-around this issue.

-- DemetriMouratis - 15 Apr 2008

Thanks Michael for contributing this new plugin! If I may, some small feedback:

  • Avoid linking to oneself (See Jakob Nielsen's Alertbox)
  • Think about measuring and documenting the PluginBenchmarks
  • I added the PluginPackage form, please fill in the details
  • It would be nice to have a visual clue (besides hovering) that sections can be edited. Possibly with a non-intrusive small uweb-bo12.gif icon, on hover changing to uweb-m12.gif ? Possibly configurable?

Going forward, let's work hard to keep the plugin and template interface more stable over time, so that developers do not need to duplicate and fix code, and so that users are less confused on which plugin to install.

-- PeterThoeny - 04 Jan 2008

A couple things I noticed

  • if you have a page with some uncreated pages (WikiName waiting to be used) and edit a different section on the page, those words will now have (LabStuff?) will be populated.
  • Second if you have WikiWord in a section, the section edit seems to clear out the ! and so if you do not notice and repopulate it will be back to a WikiWord

Still a good plugin

-- ScottHinchley - 12 Jan 2008

Scott, I am not sure if I can create a test case from your descriptions to reproduce your findings. Can you make one up please? Thanks.

-- MichaelDaum - 12 Jan 2008

Yes I should be able to. Do you want them in the Bug Database? And will create two bug reports.

-- ScottHinchley - 15 Jan 2008

That's a good idea.

-- MichaelDaum - 15 Jan 2008

Done. Let me know if you need more details. Bug Item5250 for the ! bug. Bug Item5251 for the ? bug.

-- ScottHinchley - 15 Jan 2008

Just upgraded our Twiki to 4.2.0 and installed this plugin to replace an old chapter-editing plugin. I found two problems:

(1) We often use chapter headings of the form ---++[[company]] - while the resulting link still highlights, clicking on it is caught by the editChapter functionality - in other words the default formatting of the chapter edit code breaks any links that may be in the section heading. I did fix that by changing the format of the link code, but just linking the icon seems to make more sense to me.

(2)There seem to be some interaction with forms - with this plugin enabled, the little 'add form' button disappears from pages opened for editing. Existing forms still show and can be changed.

-- ThorstenSchnier - 30 Jan 2008

"add form" is disabled when in chapter edit mode. It should be visible in normal editing however.

-- MichaelDaum - 04 Feb 2008

Thanks for this plugin for 4.2 but is there a reason why it is not implemented so that it is possible to save an isolated subsection back into the topic, rather than saving the complete topic, despite the fact that only part of it is editable? This allows the scenario where Mr.X opens a section for editing and whilst he is doing this Mrs.Y opens, edits and closes another section but this all gets lost when Mr.X saves his edits (along with the old section that's just been edited by Mrs.Y) over Mrs.Y's version... oder?

-- DavidPatterson - 05 Feb 2008

I've noticed that the TINYMCE editor appears below the raw text editor field when you follow a chapter edit link. I'm surprised that no one has noticed this, so I wonder if there is something unique in my setup? Added Bug Item5355

-- BryanEllsaesser - 12 Feb 2008

Bryan, at least I'm not the only one who got caught by this. wink It's actually described in the plugin topic: EditChapterPlugin#Limitations

-- MartinKaufmann - 12 Feb 2008

I've just installed this (on TWiki 4.1.2) using the installer script &, well it just did't do anything. I've used debugenableplugins to see if there was a clash, but it still doesn't work. It's showing as enabled in Installed Plugins. I check the generated html & the calls are there, but the icon doesn't appear. If I remove the ecpedit class, then it appears & the plugin works. I've tried this with Firefox & IE. Is there something wrong with the CSS?

-- ChrisHogan - 14 Feb 2008

Did you install the JQueryPlugin? The edit icon will only show up if you hover with you mouse pointer over the headings. This event will switch on the ecpEdit class.

-- MichaelDaum - 14 Feb 2008

The installer did it for me, but now I check the user I was logged in as didn't have permission to update the pub directories properly! I've copied them in place manually & it's all working.

Thanks for the quick response Michael

-- ChrisHogan - 14 Feb 2008

I've installed the plugin, however it's not working correctly. The edit buttons appear but when I click on one edit button the whole text of the page is opened in the editor.

Is there a way for me to debug the plugin to find out where the error is? We are running TWiki 4.1.2. Thanks!

-- AlexRaabe - 27 Mar 2008

I need to use this plugin with QuickMenuSkin, but it is not working. When I try to edit a sub-section, it open no only the content of the sub-section, but all the whole content of the page. I am testing it in TWiki 4.2. Thanks!

-- MarceloAInuzuka - 14 Apr 2008

I tested the plugin now also with TWiki 4.2.0 which still didn’t work.
Is it possible that it has something to do with the version of pattern skin that we use (which has been altered in many ways from the original version)?

-- AlexRaabe - 15 Apr 2008

Alex, which authentication method are you using?

-- MichaelDaum - 29 Apr 2008

This plugin seems to hide the "Add Forms" button in Twiki 4.2. See also NoAddFormButton The Plugin was disabled in Main.TWikiPreferences by * Set EDITCHAPTERPLUGIN_ENABLED = off

-- JensHofmann - 30 Apr 2008

Hey Micha,

got the same problem as Alex and Marcelo. The "whole text of the page is opened in the editor"

TWiki 4.0.4. with latest NatSkin and JQuery installed

-- CarloSchulz - 05 May 2008

I have a different problem (big problem). It only opens the chapter you want but on saving, the entire document disappears. Anybody have the same problem? Obviously we turned it off quickly. We're using TWiki 4.2.0

-- JoeMarandola - 13 May 2008

Found out it was related to Bug Item5355. Wrote Bug Item5635.

-- JoeMarandola - 15 May 2008

I have a completly different problem: installation okay As soon as I update a section, the whole text gets deleted. No errors... Any suggestions?

-- EddieCoissy - 20 May 2008

i had the following problem: if a web sets ALLOWWEBVIEW this plugin is no longer functional (empty textbox when editing). i located the problem in EditChapterPlugin/Core.pm : if ALLOWWEBVIEW is defined,

TWiki::Func::checkAccessPermission('view', $this->{wikiName}, $text, $thisTopic, $thisWeb, $meta);

will always return 0 (no idea why ...)

i simply changed 'view' to 'edit':

TWiki::Func::checkAccessPermission('edit', $this->{wikiName}, $text, $thisTopic, $thisWeb, $meta);

and everything worked just fine again ...

-- WolfgangAstleitner - 30 May 2008

I've been forced to disable this plugin. Even before my upgrade to 4.2 I could not get the Add Form button to appear if iit was active. I would like to use it, even with the overide of links in the header (I use Firefox, so as long as I remember to middle-click not click on a header I can edit in either way that I wish to, but...

If Add Form is not available, I'm afraid it's a no go.

-- ChrisHogan - 09 Jun 2008

Footnotes for FootnotePlugin, tagged with double curly brackets, unnecessarily expand, loosing thereafter there function frown

-- AndreLichtsteiner - 27 Aug 2008

Since the EditChapterPlugin does not work with the WYSIWYG-Editor yet, I think it would be useful to add a "nowysiwyg=1;" to the query string of the edit-button's URL. (See the "Raw edit" button at the end of each topic.)

Add the line " nowysiwyg=>'1'," at line 147 in ../twiki/lib/TWiki/Plugins/EditChapterPlugin/Core.pm

That did the job for me.

-- PeterAlbrecht - 04 Sep 2008

Either I'm doing it wrong or it does not the trick for us. But as we are using NatEditContrib - means no WYSIWYG - my hopes were not to high.

Similar to the problem with FootNotePlugin get part of the Syntax from ExplicitNumberingPlugin lost too (##.).

-- AndreLichtsteiner - 05 Sep 2008

Michael, I would like to suggest a couple of new features for this plugin which would give TWiki a very sexy interface.

  • Double-clicking on a section would change it into an inline editor containing the raw TML without needing to reload the page. This could be acheived with the jQuery JEditable plugin and the chapter extraction code that is already a part of your plugin. Instead of adding edit links to the headers, wrap the sections in div tags with unique chapter ids and the doubleclick class that JEditable understands. A rest script returns the raw code for the id'd chapter. With a markItUp editor wikiset written for TWiki, markItUp could be chained on to the end to give a rich TML inline editor (I volunteer to create the MarkItUpEditorPlugin). Upon successful save the REVINFO could also be reloaded without having to reload the whole page.
  • Sectional commenting: add a comment button to the header which would reveal a previously hidden (display:none) comment box which would append a comment (wrapped in div tags with a comment class to give them a comment style) to the end of the section. As above, the section and REVINFO could be individually reloaded without having to reload the whole page.

-- DavidPatterson - 11 Sep 2008

Good ideas! I once tried to get divs around sections. However, this gets pretty ugly soon. I failed on that one when I tried so this in its own would be great thing to have, even for styling indented sections.

-- MichaelDaum - 11 Sep 2008

OK. I'm probably reaching here, but couldn't a piece of javascript do this task on the client side? It looks for the ecpHeading spans that your serverside code has embedded in the headings, removes their ids and gives them to divs which it adds to the DOM before and after the heading tags.

-- DavidPatterson - 11 Sep 2008

I've installed EditChapterPlugin on TWiki 4.2.3. It's enabled as well as JQuery is enabled. The edit chapter button appears when I hover over a section heading. The WYSIWYG editor correctly displays the section to be edited, I edit the section, click save and none of my changes are saved. There are no errors in the apache logs or the TWiki logs. JQuery is working as I've looked at it's test page in the Sandbox and everything seems to work in there. Any ideas? TWiki is running on Apache on Ubuntu.

-- MatthewJackson - 02 Oct 2008

Try disabling the WysiwygPlugin.

-- MichaelDaum - 03 Oct 2008

Seems to be missing MANIFEST in the version 7 (03 Jul 2008) version zip and tgz, but weirdly enough it shows in in http://develop.twiki.org/trac/browser/twiki/trunk/EditChapterPlugin/lib/TWiki/Plugins/EditChapterPlugin/MANIFEST

-- MartinCleaver - 06 Oct 2008

Hm, never had one. The MANIFEST is only needed to build the plugin, but not part of the shipped zip.

-- MichaelDaum - 07 Oct 2008

Oh, yes. Now I see. Thanks Micha.

-- MartinCleaver - 07 Oct 2008

I have installed this plugin on 4.3.1, but there seems to be nothing working at all. Both JQueryPlugin and this plugin are enabled, but no indication of anything being editable is shown when one hovers over the titles as discussed above.

It might be worth pointing out in the documentation that hovering over the titles is what enables the editing...

-- ThomasWeigert - 2011-02-02

Is this plugin compatible with version 5.1? I am working on converting my internal users off of mediawiki.

-- CarlEastman - 2012-04-13

So far the section seems to be working with raw edits. Can it be upgraded to use the wysiwyg editor?

-- CarlEastman - 2012-04-13

This plugin is listed to be tested on TWiki 4.3, 4.2 and 4.1. Some TLC is needed to make it stable and usable.

-- PeterThoeny - 2012-04-13

New AutoSectionsPlugin is available with similar functionality.

-- Peter Thoeny - 2013-05-06

Edit | Attach | Watch | Print version | History: r45 < r44 < r43 < r42 < r41 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r45 - 2013-05-06 - PeterThoeny
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2016 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.