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

Add convenience hasSubWikis() method to api.XWiki

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 5.0-milestone-2
    • 4.5.1
    • Old Core
    • None
    • Unknown
    • N/A

    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

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

            Dates

              Created:
              Updated:
              Resolved: