# New contrib extension - Numbered Content Application

**URL:** <https://forum.xwiki.org/t/new-contrib-extension-numbered-content-application/9464>\
**Category:** Development\
**Tags:** contrib\
**Created:** [November 22, 2021, 10:52am UTC](https://forum.xwiki.org/t/new-contrib-extension-numbered-content-application/9464 "2021-11-22T10:52:01Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mleduc](https://forum.xwiki.org/user_avatar/forum.xwiki.org/mleduc/32/2328_2.png) [@mleduc](https://forum.xwiki.org/u/mleduc)\
**Post date:** [November 22, 2021, 10:52am UTC](https://forum.xwiki.org/t/new-contrib-extension-numbered-content-application/9464/1 "2021-11-22T10:52:01Z")

</div>

Hello all,

I’d like to propose the creation of a new contrib extension called Numbered Content Application.

This extension will gather in a single repository several automatic content numbering (i.e., heading, figures, paragraphs) as well as content reference. The features are already covered by multiple extension: [Paragraph Numbering Application](https://design.xwiki.org/xwiki/bin/view/Proposal/ParagraphNumbering), and [Numbered Reference Macro](https://extensions.xwiki.org/xwiki/bin/view/Extension/Numbered%20Reference%20Macro/).  
In addition, this extension will provide CKEditor improvements to ease writing documents with automatic content numbering. For instance, pressing tab to change the heading level, or the ability to see the numbers in edit mode.

[GitHub - xwiki-contrib/application-paragraph-numbering](https://github.com/xwiki-contrib/application-paragraph-numbering) will be fully replaced by this new extension. Since the paragraph numbering application has never been released, no action will be required from wiki admins.  
[GitHub - xwiki-contrib/macro-numbered-references: Provides numbered headings and more generally allow to number anything](https://github.com/xwiki-contrib/macro-numbered-references) will be replaced by this new extension too, but to prevent unexpected breaking change, migrating to this new extension will need be done manually.

More details can be found on the [corresponding design page](https://design.xwiki.org/xwiki/bin/view/Proposal/ContentNumbering).

Name of the application: **application-numbered-content**  
Jira project id: **NCAPP**

We’ll need:

- A **GitHub repository** , under [XWiki Contrib · GitHub](https://github.com/xwiki-contrib)
- A **JIRA project**
- A **CI job** on [https://ci.xwiki.org](https://ci.xwiki.org)
- **Translations** , under the [l10n platform](https://l10n.xwiki.org).

Thanks

---

<div class="post-metadata">

**Author:** ![vmassol](https://forum.xwiki.org/user_avatar/forum.xwiki.org/vmassol/32/6_2.png) [@vmassol](https://forum.xwiki.org/u/vmassol)\
**Post date:** [November 22, 2021, 2:44pm UTC](https://forum.xwiki.org/t/new-contrib-extension-numbered-content-application/9464/2 "2021-11-22T14:44:42Z")

</div>

> [@mleduc](#):
>
> as well as content reference

Reference to the numbered content to be precise.

> [@mleduc](#):
>
> [GitHub - xwiki-contrib/application-paragraph-numbering](https://github.com/xwiki-contrib/application-paragraph-numbering) will be fully replaced by this new extension. Since the paragraph numbering application has never been released, no action will be required from wiki admins.

I’m not sure that we should remove this extension. I think it should be separate from the ability to number headings, tables and figures, since it’s a more exotic use case and I’m pretty sure that 99% of users who need numbering don’t need paragraph numbering. WDYT?

---

<div class="post-metadata">

**Author:** ![mleduc](https://forum.xwiki.org/user_avatar/forum.xwiki.org/mleduc/32/2328_2.png) [@mleduc](https://forum.xwiki.org/u/mleduc)\
**Post date:** [November 22, 2021, 2:49pm UTC](https://forum.xwiki.org/t/new-contrib-extension-numbered-content-application/9464/3 "2021-11-22T14:49:09Z")

</div>

> [@vmassol](#):
>
> > [@mleduc](#):
> >
> > [GitHub - xwiki-contrib/application-paragraph-numbering](https://github.com/xwiki-contrib/application-paragraph-numbering) will be fully replaced by this new extension. Since the paragraph numbering application has never been released, no action will be required from wiki admins.
> 
> I’m not sure that we should remove this extension. I think it should be separate from the ability to number headings, tables and figures, since it’s a more exotic use case and I’m pretty sure that 99% of users who need numbering don’t need paragraph numbering. WDYT?

I had in mind to group every “numbered” extensions in a single repository (but to allow each numbered-xxx extension to be installable independently of the others). But we can keep numbered paragraph in a separate repository if we want to keep a distinct versioning for it.

---

<div class="post-metadata">

**Author:** ![vmassol](https://forum.xwiki.org/user_avatar/forum.xwiki.org/vmassol/32/6_2.png) [@vmassol](https://forum.xwiki.org/u/vmassol)\
**Post date:** [November 22, 2021, 3:15pm UTC](https://forum.xwiki.org/t/new-contrib-extension-numbered-content-application/9464/4 "2021-11-22T15:15:55Z")

</div>

> [@mleduc](#):
>
> I had in mind to group every “numbered” extensions in a single repository (but to allow each numbered-xxx extension to be installable independently of the others).

Yes but they’d be released and installed all together in XWiki. For ex users will see the Para Numbering Macro in the WYSIWYG editor macro dialog.

---

<div class="post-metadata">

**Author:** ![mleduc](https://forum.xwiki.org/user_avatar/forum.xwiki.org/mleduc/32/2328_2.png) [@mleduc](https://forum.xwiki.org/u/mleduc)\
**Post date:** [November 22, 2021, 3:17pm UTC](https://forum.xwiki.org/t/new-contrib-extension-numbered-content-application/9464/5 "2021-11-22T15:17:49Z")

</div>

> [@vmassol](#):
>
> Yes but they’d be released and installed all together in XWiki. For ex users will see the Para Numbering Macro in the WYSIWYG editor macro dialog.

ok, so +1 to keep paragraph numbering separated from the rest.

---

<div class="post-metadata">

**Author:** ![mleduc](https://forum.xwiki.org/user_avatar/forum.xwiki.org/mleduc/32/2328_2.png) [@mleduc](https://forum.xwiki.org/u/mleduc)\
**Post date:** [November 23, 2021, 8:57am UTC](https://forum.xwiki.org/t/new-contrib-extension-numbered-content-application/9464/6 "2021-11-23T08:57:37Z")

</div>

- **GitHub repository:** [GitHub - xwiki-contrib/application-numbered-content: Allows to automatically add number on headings and figures, and to create references to the numbered contents.](https://github.com/xwiki-contrib/application-numbered-content)
- **JIRA Project:** [Loading...](https://jira.xwiki.org/projects/NCAPP/)
- **CI job:** [Branches (2) [XWiki Contrib » application-numbered-content] [Jenkins]](https://ci.xwiki.org/view/Contrib/job/XWiki%20Contrib/job/application-numbered-content/)

The translations will be available on [https://l10n.xwiki.org/](https://l10n.xwiki.org/) as soon as we introduce them during the development.
