Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-8875

Add convenience hasSubWikis() method to api.XWiki

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.5.1
    • Fix Version/s: 5.0-milestone-2
    • Component/s: Old Core
    • Labels:
      None
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Similar issues:

      Description

      To find out if the XWiki instance contains other (sub)wikis than just the main wiki (assuming XWIKI-8841 is implemented), you would have to test if:

      $xwiki.wikiNames().size() > 1
      

      For convenience, we could just have:

      $xwiki.hasVirtualWikis()
      

        Attachments

          Activity

            People

            • Assignee:
              enygma Eduard Moraru
              Reporter:
              enygma Eduard Moraru
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Date of First Response: