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

Add API to display document's titles in plain text without any markup

    XMLWordPrintable

Details

    • Task
    • Resolution: Fixed
    • Major
    • 3.0 M1, 2.7.1
    • 2.7
    • {Unused} APIs
    • None
    • Unknown

    Description

      from the list:

      In lots of places we need to display the title without any markup rendering. Examples:

      • breadcrumb
      • activity stream
      • search results
        etc

      This is such a common use case I'm proposing to add a new API for it in Document: getPlainTitle()
      It's a one liner that will do:

      getRenderedTitle("plain/1.0")

      Attachments

        Issue Links

          Activity

            People

              vmassol Vincent Massol
              vmassol Vincent Massol
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: