XWiki Platform
  1. XWiki Platform
  2. XWIKI-14310

Propose and pre-select "recommended" templates in the create UI based on the current location

    Details

    • Difficulty:
      Unknown
    • Similar issues:

      Description

      We have the ability to specify creation restrictions with Template providers. AWM also automatically generates a template provider for a new app and, by default, sets a creation restriction to the app's data space.

      We should use this mechanism to promote (i.e. show first) and even preselect the template provider that has a creation restriction matching the current location from where the user pressed the Create button.

      In the future, this would also allow us to remove the "Add new entry" button in AWM apps and just use the Create UI with the template pre-selected.

      In the current state (i.e. while we still have the "Add new entry" button), it will simply help users that are pressing the Create button instead of the app's "Add new entry" button and getting confused with all the templates.

        Issue Links

          Activity

          Hide
          Eduard Moraru added a comment -

          Going to the Blog space and clicking on the Create button should show the "Blog post" template first in the list and it should be preselected:

          The same should happen from a nested page, child of the Blog page (space).

          If there are more recommended templates, the first one will be pre-selected.

          Note that for dynamic applications that would create nested entities or multiple types of entities, the current solution might not be enough, and we might need something recommending based on the class type (similar to what we do with sheets that apply depending on the object inside the current page).

          Show
          Eduard Moraru added a comment - Going to the Blog space and clicking on the Create button should show the "Blog post" template first in the list and it should be preselected: The same should happen from a nested page, child of the Blog page (space). If there are more recommended templates, the first one will be pre-selected. Note that for dynamic applications that would create nested entities or multiple types of entities, the current solution might not be enough, and we might need something recommending based on the class type (similar to what we do with sheets that apply depending on the object inside the current page).
          Hide
          Vincent Massol added a comment -

          Nice!

          Show
          Vincent Massol added a comment - Nice!

            People

            • Assignee:
              Eduard Moraru
              Reporter:
              Eduard Moraru
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Date of First Response: