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

The DBList field always proposes the blog introduction first in AWM

    XMLWordPrintable

Details

    • Unknown
    • N/A
    • N/A
    • Awaiting Committer feedback

    Description

      The cause come from the fact that the Blog.BlogPostClass is put as default class in the field parameters
      https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-appwithinminutes/xwiki-platform-appwithinminutes-ui/src/main/resources/AppWithinMinutes/DBList.xml#L54

      When the field is added to the app, the list of articles is automaticly loaded and the first one is selected (normal functioning of the DBList field) and then the template object of the current class is created with this value

      It's not a good idea to have an example document from another application here this can lead to confusion. This can make sense only if AWM had a dependency on the blog.

      To have an example or to explain how it work, we can add an explicative message or replace the current input by a classes selector.

      Attachments

        Issue Links

          Activity

            People

              mleduc Manuel Leduc
              sidali Djebloun Sidali
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: