Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-116031

As a page creator I can map a text editable to the categories assigned to a content for a specific vocabulary

    Details

      Description

      Motivation

      Currently when mapping the fields of a content that supports categories (such as Web Content, Documents or Blog Entries) there is one field representing all categories assigned to the content. However, sometimes it's desired to be able to check one specific vocabulary.

      The goal of this story is to expose each vocabulary as an independent field, so that the page creator can choose which assigned categories should be mapped and displayed. All the vocabularies available when editing the content should be shown as a field. That includes:

      • Vocabularies in the site
      • Vocabularies inherited through the site hierarchy
      • Vocabularies in global 

      Only the vocabularies marked as internal shouldn't be displayed.

      Technical Requirements

      • This feature must be available for content pages and display page templates
      • When selecting either a specific web content or the default type of content, the "Field" dropdown will show an entry "All categories" and also each vocabulary as a separate entry. This includes:
        • Any vocabulary from site or global that is associated with the type of content featured in the fragment
        • That is not marked as internal

      Acceptance Criteria

      • Given a content page
      • When adding a fragment that can be mapped with a specific content
      • Then the "Field" dropdown will show an entry "All categories" and also each vocabulary applying to that content as a separate entry.

      Julia Molano This acceptance is the same as the previous acceptance. Only fragments with an editable element can be mapped. I leave the second one because it is more correct.

      • Given a display page template
      • When adding a fragment with an editable element that can be mapped with a specific content or a type of content
      • Then the "Field" dropdown will show an entry "All categories" and also each vocabulary applying to that type of content as a separate entry.

      • Given a display page template or a content page
      • When mapping a fragment with a specific vocabulary 
      • Then only the categories of that vocabulary assigned to the content display

       h1. Test Scenarios

      AC ID Test Strategy Test Scenarios Is it covered by FrontEnd ? (JS-Unit) Is it covered by BackEnd? (unit or integration) Poshi?
      01 Sanity When a fragment is added to a display page and it can be mapped with a specific content, the "Field" dropdown will show an entry "All categories" and also each vocabulary applying to that content as a separate entry No   Yes  
      02 Sanity When a fragment with an editable element is added to a content page and it can be mapped with a specific content, the "Field" dropdown will show an entry "All categories" and also each vocabulary applying to that content as a separate entry No Yes   
      03 Smoke When the user maps a fragment with a specific vocabulary, only the categories of that vocabulary are assigned to the content display No  Yes  

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              carlos.brichete Carlos Brichete Báez
              Reporter:
              angelo.youn Angelo Youn (Inactive)
              Engineering Assignee:
              Pavel Savinov (Inactive)
              Recent user:
              Kiyoshi Lee
              Participants of an Issue:
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Packages

                  Version Package
                  Master