Loading ...

Sorting wiki pages | Communifire Support

Communifire Support

Leave Space :

Are you sure you want to leave this space?

Join this space:

Join this space?

Add a new tab

Add a hyperlink to the space navigation. You can link to internal or external web pages. Enter the Tab name and Tab URL. Upload or choose an icon. Then click Save.

The name that will appear in the space navigation.
The url can point to an internal or external web page.
Login to follow, share, and participate in this space.
Don’t have a support community login?Create your account now
Posted in: Communifire API & Developers

Sorting wiki pages

Subscribe to RSS
  • hg77

    We have many wikipages (>1000) and the manual sort on /spaces/manage/wiki/sort-wiki?spaceID=2 is painfully slow. Is there an official API to do the sort order programmaticaly?

    In the past (Version 5.2.6403.39228) we used /api/content/orderandparent but this stopped working on Version 6. It may be related to the RequestVerificationToken which I don't want to reverse engineer and don't find any info on your site.

  • gskamau

    Hey Henryk,

    You can use PUT /api/content/orderandparent in 6.0. Send the API Key in the header as Rest-Api-Key. In the body, send a string in the format "id[ContentID]=ParentContentID&id[ContentID]=ParentContentID&id[ContentID]=ParentContentID". For wikis without a parent, send null as the ParentContentID. Here's an example:


    This would produce this hierarchy:

    • 105
      • 104
        • 103


Page 1 of 1 (2 items)