| Name | Sub Section Macro |
|---|---|
| Vendor | Adaptavist.com Ltd (Website) |
| Authors | Jean-Maxime Guay, Alain Moran |
| Homepage | http://confluence.atlassian.com/display/CONFEXT/Sub-Section+Macro |
| Issue Management | http://developer.atlassian.com/jira/browse/SUBS |
| Continuous Integration | n/a |
| Categories | Advanced Macros |
| Most Recent Version | 1.0.10 |
| Availability | Confluence v2.1 to v2.10 |
| State | Beta |
| Support |
|
| License | Freeware / Open Source (BSD) |
| Price | Donate |
| Release Docs | http://confluence.atlassian.com/display/CONFEXT/Sub-Section+Macro |
| Java API Docs | n/a |
| Download Source | http://svn.atlassian.com/svn/public/contrib/confluence/sub-section/ |
| Download JAR | merck-adaptavist-subSection-1.0.10.jar |
Description
A macro which allows you to create editable sub sections within a document- Each {sub-section} has to be distinguished by an unique ID.
- Addresses CONF-5913
{sub-section:1}1st section of doco - test addition...
test{sub-section}
Parameters
Required
- An ID must be specified directly after the : (colon). The ID used to identify the sub-section on the page, all sub-sections with the same id will end up with the same content after editing, hence this ID should be unique for the page.
- Note: If the page content is included elsewhere by {include}, {metadata-from} or {zone-template-instance} or the like, the sub-section should be unqiue for the entire confluence installation, perhaps using the pageid in the sub-section id.
Optional
- showComment - Show/Hide the comment textbox in the sub-section. Either true or false. Default to true.
- comment - Set the text of the version comment. Default : "sub-section:ID edited".
- showMinorChange - Show/Hide the minorEdit checkbox in the sub-section. Either true or false. Default to true.
- minorChange - Either true or false. A minor change won't send a notification to watchers. Default to false.
- metadata - The key of the metadata in which the wikimarkup will be stored. Default: no metadata set.
All the parameters (keys and values) are case insensitive. Metadata keys are still case sensitive.
Release History
Plugin Versions
| Version | Date | State | License | Price |
|
|
02 Oct 2006 | Alpha | Freeware / Open Source (BSD) | Donate |
|
|
03 Oct 2006 | Alpha | Freeware / Open Source (BSD) | Donate |
|
|
10 Oct 2006 | Alpha | Freeware / Open Source (BSD) | Donate |
|
|
11 Oct 2006 | Alpha | Freeware / Open Source (BSD) | Donate |
|
|
11 Oct 2006 | Alpha | Freeware / Open Source (BSD) | Donate |
|
|
01 Oct 2007 | Alpha | Freeware / Open Source (BSD) | Donate |
|
|
15 Oct 2007 | Alpha | Freeware / Open Source (BSD) | Donate |
|
|
22 Oct 2007 | Beta | Freeware / Open Source (BSD) | Donate |
|
|
07 Nov 2007 | Beta | Freeware / Open Source (BSD) | Donate |
|
|
14 Nov 2007 | Beta | Freeware / Open Source (BSD) | Donate |
|
|
07 Dec 2007 | Beta | Freeware / Open Source (BSD) | Donate |
Example of use
The live example below is from the sub-section test page (View Source)
this is cool. This is an add on.
Ja, dette er jo skikkelig bra!!!
| Title | Value | ||||
|---|---|---|---|---|---|
| Alpha |
ab &&&&&&&&&& |
||||
| Beta |
$$$ |
Test Header
- Bullet
- Bullet 2
- Bullet 3
- Bullet 4
- Bullet 5
- Bullet 4
- Bullet 3
- Bullet 2
- 345
- 345
this is totally freaken AWESOME!
it's versioned too!
yes, you can edit in section
Issue Tracking
| This plugin is still a proof of concept and currently unsupported. Neither the initial author or subsequent authors are actively developing or handling issues on a regular basis. |
| Please report new issues in the JIRA project (linked above). In order to vote for any issues below, create a new JIRA issue with the appropriate details. |
use POST instead of GET (to alleviate the current ~2kb character limit (and/or note this limit on the form)
manipulate text to be put into the page as a string, not regx. Regx manipulation was causing crashing when $ was used.
add revision comment to the form
add minor edit checkbox to the form (default=no)
create a 'metadata' parameterthat will automatically load the 'sub-section' content into the named metadata store on the page (in addition to putting it in the page source itself, for versioning). this avoids problems with having to try to nest metadata and subsection macros within each other. Currently {metadata:test}{sub-section:page1section1}test{sub-section}{metadata} doesn't work as expected, as the sub-section macro is IN the metadata, and the reverse puts the metadata IN the subsection.
Perhaps give parameter/option that lets you lose the "edit" button completely and make it so users can just click or double-click the text section to edit it? (...as shown here: http://www.appelsiini.net/projects/jeditable/default.html). This would be useful in tables. Imagine this with table-plus tables! Exciting!
- if possible, add watch this page checkbox to the edit submission form (default=yes). User can choose to update their page watch status when they make a change, but default it turns it on. (see 'autowatch' plugin)
- use a (configurable) 'pencil' edit icon to edit the sub-section rather than the grey edit box (aka [checklist plugin])
- use a (configurable) plain text, right-justified [edit] button to edit the sub-section, rather than the grey buttons
- change the 'edit' button (optionally?) to be FLOATING at the TOP RIGHT of the section that is editable, to minimize interruption of reading.
- If possible, automatically size the 'edit box' to fit in the same area as the 'div' or 'span' that the rendered text is occupying to minimally interrupt the viewers experience. Set a minimum size of 2 lines by 30 columns, or something similar, which might be overridden by parameters. If difficult, at least set the number of rows to the number of rows of wiki source text.
- create a table version that makes every cell in each table in the body a 'sub-section' editable field
- create a heading version that makes every h1..h5 section in the body of the macro sub-section editable
- sub-section does not require CAPTCHA, even if CAPTCHA is enabled for pages and comments for the site.
- On IE6.0, but not firefox, including a sub-section macro on a page causes the entire 'preview' tab to not render while editing a page using the regular edit feature. No java error is returned, but the tab is entirely blank. Of course, there is differences in the way visibility et display of elements are set in the two platforms. This is also observed for other plugins, such as [pagetreesearch] and [pagetree] macros (others?), but was broken and fixed in other plugins (examples?).
sub-section macro fails when within a metadata-list macro and content contains blank lines META-45
Fixed somewhere between confluence 2.3.3 and 2.5.7 by updating the wiki renderer. It now allows macros, such as sub-section, in table syntax to contain blank lines without breaking the table.
In general, sub-section works well within a metadata-list and metadata-report, as long as each sub-section (on each page) uses a unique identifier. However, a problem arises if you have blank lines in wiki table syntax (which is used for metadata-lists). Behaviour for metadata table is different than that of the default wiki table renderer. The problem may need to be fixed for metadata or sub-section or the wiki table renderer or all three. I will cross post this bug report.
*** The following does not work properly (sub-section breaks):
{metadata-list}
|| Summary | {sub-section:myid}text
text{sub-section} |
{metadata-list}
*** The following fails for table rendering, but sub-section and meta-data still both work:
|| Summary | {metadata:Summary}{sub-section:myid}text
text{sub-section}{metadata} |
*** The following works for both meta-data and sub-section:
{metadata:Summary}{sub-section:myid}text
text{sub-section}{metadata}
| Sub-section version 1.7 and later now have a metadata parameter which simplifies the usage of metadata and sub-section together |


Comments (8)
Jan 31, 2007
Tom Miller says:
I really like the way the openSuse wiki does this. It is right justi...I really like the way the openSuse wiki does this. It is right justified on the same line as the subsections title. It is a link.
So it looks somthing like this. With the test section boxed
My Title of My New Sub Section [edit ]
Content of the subsection.
Nov 01, 2007
Jean-Maxime Guay says:
A problem with the xml file has been fixed and the latest version (1.0.7) is now...A problem with the xml file has been fixed and the latest version (1.0.7) is now functional.
I've tested it on my server and all features are working properly. Enjoy!
Done : asynchronous update (AJAX)
Feb 19, 2008
Matt Bovett says:
I don't suppose there'd be a way to do this without putting an edit button in ev...I don't suppose there'd be a way to do this without putting an edit button in every spot you use the macro, would there?
Instead of clicking edit, I'd like to be able to click or double-click in any section and edit it in place, as you see here: (click all the bold text for different examples)
http://www.appelsiini.net/projects/jeditable/default.html
I thought this library could do it as well...
http://script.aculo.us/
Mar 03, 2008
James Mortimer says:
good examples. You are welcome to create a release of sub-section that impleme...Feb 20, 2008
Allan Pratt says:
Is there any chance of a version of this macro that invokes the Rich Text Editor...Is there any chance of a version of this macro that invokes the Rich Text Editor instead of the wiki editor? I know it's possible, because the UI for adding this comment popped up the RTE as the default entry mode.
Mar 03, 2008
James Mortimer says:
a great idea. However, we have no further plans for development of this plugi...Mar 03, 2008
Peter R. says:
we have no further plans for development of this plugin at this time Does this m...Does this mean, then, that the plug-in is officially out of beta even though it's still labeled as such? We generally avoid using anything flagged beta or earlier. Thanks!
Mar 03, 2008
James Mortimer says:
no. it's still somewhat of a proof-of-concept that hasn't been fully 'beta' te...