Choose the Right Location for a Page

Last modified by Eleni Cojocariu on 2026/11/23 12:59

Warning

WIP

Every documentation page has one place in the tree: three steps give you that place, and the rules after them say what it may be.

All documentation must be located as children pages of the documentation page.

Information

Adding documentation content directly under "../Documentation/UserGuide/", "../Documentation/AdminGuide/", "../Documentation/DevGuide/", or in the Extensions wiki is not recommended, as it contributes to the documentation that we are in the process of converting and refactoring to the new location. Documentation must be added under "../documentation/" by following the documentation guide.

The Three Steps

Step 1: The Extension

Every documentation page must be associated with an Extension and be located accordingly:

  • Bundled Extensions: under documentation.xs, the XWiki Standard tree.
  • Non-bundled Extensions: under documentation.extensions, the Extensions tree, where the topic is the name of the extension. See "Extensions Documentation" below.

The association is done by Link Documentation Page to its extension.

Step 2: The Audience

Choose the audience the page is written for:

Step 3: The Topic

Place the page under the topic it belongs to, an existing one whenever it covers the same subject. Create a new topic only if none fits.

  • Every topic is a functional domain, not a part of the code. See below.
  • Topic pages, the pages listed directly under User, Administrator or Developer Documentation, are the entry point of a topic. They must be explanation type pages, with a title of three words at most.
  • Inside the topic, nest the page where it makes sense: a page that describes the options or the consequences of another page, or that follows from it, should be placed as a child of that page.

Functional Domains, Not Technical Domains

Every topic page, and every subtopic below it, must be a functional domain.

What a Functional Domain Is

A functional domain is a part of XWiki as the reader experiences it: something they can name, want to do, or have to manage, without knowing how XWiki is built. It is named after what the reader does or manages, never after what implements it, and it gathers everything about that subject, whichever module, file or editor is involved.

It is not a part of XWiki as the developers built it: a module, an API, a storage mechanism, a configuration file, a step of the rendering pipeline. Those are technical domains: real, but not how a reader looks for a page, so not how the tree is organised.

Functional domainsTechnical domains
Rights, Notifications, Attachments, Exports, Imports, Wiki Farms, Page Templates, Authentication, URLs, Keyboard Shortcuts, etc.Store, Front-End, Async Rendering, Skin Extensions, XAR Module, Rendering Transformations, Component Manager, Configuration

How to Tell Them Apart

Ask one question: why are these pages together?

  • "Because a reader looking for one of them would also look for the other" means a functional domain. Keep them together.
  • "Because the same module, the same API or the same configuration file handles them" means a technical domain. Split them, and put each page with the feature it is about.

Developer Topics

For developers, a topic is a developer goal: write a macro, script pages, extend the UI. A topic may be named after a technical system when working with that system is the goal itself: Java Components, REST API, Content Rendering. Otherwise the system's pages, API references included, sit under the goal they serve and keep the technical term in their titles, so a search by name still finds them: Skin Extensions and Templates under Looks & Feel, Async Rendering under Performance.

Examples: How the Regrouping Works

Each row is a grouping named after how XWiki is built, and the domains its pages belong in instead.

Grouped under a technical nameIts pages belong inWhy
Configurationthe feature being configured: URLs, Authentication, Language Configuration, InstallationNobody wants to configure something in general: they want short URLs, LDAP authentication, or a second language
StorePerformance, Backup and Restore, InstallationThe store is how pages are saved. The reader arrives with a goal, a faster wiki or a backup, not with a storage layer
Skin Extensions, Templates, Flamingo SkinSkins, with the look and feel of the wikiThree implementation mechanisms serving one reader goal: changing the way the wiki looks
Rendering Transformationsthe content and editing domain whose pages they changeThe reader never sees the pipeline, only its effect on the page they are writing

Is Configuration an allowed title? Not on its own: no page may be titled just Configuration, because every feature has configuration, so the title says nothing about the subject. A title that names the feature is allowed, and is what the tree uses for the configuration pages under a feature: Live Data Configuration, Distribution Wizard Configuration, Configuration Files. The same reasoning applies to the other technical names in the table above.

Merge Topics Readers Can't Tell Apart

If a reader would hesitate between two topics, they are one topic. They must be merged, and the old ones made subtopics of the merged one.

The test: put the two names side by side and ask which one a reader with a question would click. If the answer is "either one", merge them.

The tree still contains such overlaps. They are illustrations of what to avoid, not a list of pending moves:

DocumentationTopics that overlap todayThe one question they all answerProposed example topic
DeveloperSkin, Skin Extensions, Flamingo Skin, Templates, Front-End, JavaScript"how do I change the way the wiki looks"Looks & Feel
AdministratorFlamingo Themes, Skins, Icons, Panels"how do I change the way the wiki looks"Frontend

When Two Domains Both Claim a Page

Some subjects serve two domains at once. If one shared page genuinely remains, put it where the thing is produced, and link to it from the domain that consumes it. XAR Format Specifications sits under Exports, because that is where a XAR file comes from, and the import pages link to it.

Keep at Most 20 Pages Directly Under a Page

A page should have at most 20 direct children. Past that, readers stop reading the tree and start guessing.

Applies toRule
User, Administrator and Developer DocumentationExempt. They list every topic, and there is no limit on how many topics a wiki documents
Any page of the documentation treeAt most 20 direct children
A page whose children are one flat list with nothing to group them byMay go over 20. Never invent a grouping only to get under the number. Group only when the groups mean something to the reader, otherwise leave the list flat

What to Do When a Topic Is Full

A full topic must not push a page somewhere else. Being full means it needs subtopics: group its children into subtopics that are themselves functional domains, move each child under the one it belongs to, then place the new page. Moving a page out of its topic because the topic is full is how unrelated pages end up together.

Don't Nest Pages Too Deeply

A page should be at most 6 levels below User, Administrator or Developer Documentation. Deeper pages are hard to find. This is a should, not a must. Before adding a 7th level, check that the levels above the page are not artificial. Most pages that are too deep are deep because a level above them groups a kind of page rather than a subject.

Extensions Documentation

Under Extensions, the topic is the name of the extension rather than a functional domain, and the same extension appears as a top-level page in each audience it documents: under User, under Administrator and under Developer Documentation. Every other rule on this page applies unchanged.

After the Location Is Chosen

Get Connected