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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 1.0 B6
    • 1.0 B4, 1.0 B5
    • {Unused} Core
    • None

    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

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

            Dates

              Created:
              Updated:
              Resolved: