Skip to content

#29439 feat(confluence): return pages in page tree order - #13

Open
marcreichel wants to merge 2 commits into
mainfrom
feat/page-tree-order
Open

marcreichel wants to merge 2 commits into
mainfrom
feat/page-tree-order

Conversation

@marcreichel

@marcreichel marcreichel commented Oct 24, 2026 •

Copy link
Copy Markdown
Member

Related: artemeon/core-ng#29439

AGP lists the embedded Confluence pages in an arbitrary order. It should match the order of the user documentation in Confluence.

  • Content::findPagesInSpace() additionally expands ancestors and extensions.position and returns the pages in Confluence page tree order:
    • depth-first, so a parent comes before its children
    • siblings ordered by manual position, siblings without a position by title
    • pages whose parent is not part of the result are treated as top-level pages
  • ConfluencePage gets getParentId() and getPosition().

findPagesInSpace now expands ancestors and extensions.position and orders the pages like the Confluence page tree: depth-first, siblings by manual position, unpositioned siblings by title. ConfluencePage exposes getParentId() and getPosition().
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants