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

    • Type: Task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.7
    • Fix Version/s: 3.0 M1, 2.7.1
    • Component/s: {Unused} APIs
    • Labels:
      None
    • Difficulty:
      Unknown
    • Similar issues:

      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

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

                Dates

                Created:
                Updated:
                Resolved: