Uploaded image for project: 'XWiki Rendering'
  1. XWiki Rendering
  2. XRENDERING-208

Creating an internal link to a page (without an explicit label) should use the page's title

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Major
    • None
    • 4.1-milestone-1
    • Syntax - xwiki/2.1

    Description

      Writing
      [[WebHome]]
      [[Main.WebHome]]
      [[xwiki:Main.WebHome]]
      will return 'WebHome' (page name) instead of 'Wiki Home' (page title).

      First I though that using the page title instead of name was already possible in Syntax 1.0, but I was wrong since the only difference is that the 1.0 linking adds spaces to the page's name ('Web Home').

      IMO it's much nicer that the rendering would return the page's title and I wouldn't have to put an explicit label (that could be deprecated if the title changes or that is not internationalized). Also in the WYSIWYG the label is mandatory which again is not productive ( XWIKI-4398 ).

      Since we want to make page title more important and user friendly I think this change is important, because in the context where we auto-generate the page names ( XWIKI-7374 ) those names would not be very friendly (and the user will be forced to use the label syntax, which is harder to write and marginal as usage). IMO someone uses the label syntax ( [[label>>WebHome]] ) only if he wants to use another description of that page, otherwise the page title is the verbose descriptor of a page (especially if we consider that we use syntax to write readable content).

      But I guess we first need to decide what is our strategy regarding the usage of page names vb. page titles, so we could also make other improvements ( XE-603 etc.)

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              evalica Ecaterina Moraru (Valica)
              Votes:
              2 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: