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

Create a script service to determine if a document is terminal or not

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Major
    • None
    • 8.2
    • Model
    • None
    • Unknown

    Description

      Currently, in the UI, we do something like:

      #if ($doc.name == 'WebHome')
      

      or, in the best cases:

      #if ($doc.name == $services.model.getEntityReference('DOCUMENT', 'default').name)
      

      It would be better to have a proper API to determine that.

      Attachments

        Activity

          People

            Unassigned Unassigned
            gdelhumeau Guillaume Delhumeau
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: