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

XWikiDocument.getDisplayTitle() should be evaluated to support Velocity/Groovy code in titles

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0 B4, 1.0 B5
    • Fix Version/s: 1.0 B6
    • Component/s: {Unused} Core
    • Labels:
      None
    • Similar issues:

      Description

      When a document has no title, the method extractTitle tries to get the title from the content.

      Example:

      • In my document :
        1 $msg.get("myTitle")
      • In my bundle:
        myTitle=Welcome to XWiki

      $doc.displayTitle (which calls extractTitle()) should return
      Welcome to XWiki
      but returns
      $msg.get("myTitle")

        Attachments

          Activity

            People

            • Assignee:
              vmassol Vincent Massol
              Reporter:
              thimel Arnaud Thimel
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

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