|
PITS /
00126Summary: bring an expanded (:breakpage:) directive into the core
Created: 2004-10-28 17:05
Status: Open
Category: CoreCandidate
From: jr
Assigned:
Priority: 55533 3
Version: 2.0devel19
OS: all
Description: The current Cookbook/BreakPage extension lets authors cut a long page into pieces, which then get displayed one page at a time. The recipe provides a list of page numbers as links in browse mode and the printable view shows the entire page. This is very useful, but could be made even more useful. The Cookbook/MarkupExtensions take this a little further:
This issue proposes that we:
This appears to be simple to implement: Divide the page into prechunk, chunk and postchunk, where "chunk" is the piece being edited.
Give every edit form both "prechunk" and "postchunk" attributes which are always processed when posting the data--for editing a whole page (i.e., no p= attribute supplied) the prechunk and postchunk values are simply set to null and the full text is placed in the edit box.
On Save, recombine prechunk, chunk and postchunk, then give the result to the HandleEdit function.
Sounds good, but I would prefer some kind of section editing (well in fact your suggestion is kind of that). I'm currently enhancing the Cookbook/SectionEdit script and faced some problems that should not be forgotten if such a function is implemened:
Klonk September 16, 2005, at 02:58 PM BTW: Such a sectionedit feature would be very helpful for e.g. Cookbook Klonk January 03, 2006, at 08:37 AM |