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

As a page administrator I can import content page templates within a fragments ZIP

    Details

      Description

      The goal of this story is to allow page administrators to import page templates alongside fragments in the ZIP. Since a page template may contain a number of variations of content and configuration, to keep the scope of this story limited, only the following data will be supported:

      • Fragments added to the page
      • The layouts of columns added to the page and the fragments inside its columns
      • Inline content introduced within fragment editable elements
      • The configuration of all the fragments of the page
      • The look & feel configuration of the page

      Known limitations

      The following information will not be imported for now (support will be added in subsequent stories):

      • Widget Configuration (Portlet Preferences)
      • Widget Permissions
      • Mappings of editables to existing content
      • Fragment HTML, CSS, JavaScript & Resources: Only a reference to the name of the fragment will be exported. On import in the fragment entry is not found, it will be ignored.

      Technical notes

      • The import format should be done into a JSON file as defined in LPS-106212.
      • The JSON file must have a JSON Schema that facilitates modifying it and validating the change.

      Test Scenarios

      Test Scenarios Test Strategy Kind of test Is it covered by FrontEnd ? (JS-Unit) Is it covered by BackEnd ? (unit or integration)
      Can import a zip file with single content page template to page templates collection Smoke Manual No Yes, LayoutPageTemplatesImporterTest
      Can import a zip file with multiple content page templates to page templates collection Smoke Manual No TO DO
      When import a content page template, the contributed fragments from zip file also be imported Smoke Manual No No
      The fragments that not existing in current site will be ignored when import a content page template Sanity Manual No No
      When import a content page template, the layout elements and nested elements from zip file also be imported Sanity Manual No Yes, LayoutPageTemplatesImporterTest
      When import a content page template, the edited inline content of fragments from zip file also be imported Sanity Manual No Yes, LayoutPageTemplatesImporterTest
      When import a content page template, the custom configuration settings of fragments from zip file also be imported Sanity Manual No Yes, LayoutPageTemplatesImporterTest
      When import a content page template, the custom Look and Feel of it should also be imported Sanity Manual No TO DO
      When import a content page template with the Fjord theme, the imported one should be also based on Fjord theme that is available theme in current site Sanity Manual No No
      Can import a content page template based on custom master to page templates collection Sanity Manual No TO DO
      When import a content page template with thumbnail, the thumbnail should also be imported Smoke Manual No TO DO
      Can export a content page template with custom fragments and import Sanity Manual No No

        Attachments

          Issue Links

          1.
          Create groupKeys for LayoutPageTemplateCollection and LayoutPageTemplateEntry models LPS-108148 Technical Task Closed Brian Chan  
          2.
          Change structure of the generated zip file, so that it takes into account frament collection/entry keys LPS-108462 Technical Task Closed Brian Chan  
          3.
          Expose also fragmentKey when exporting the fragments of a page template LPS-108978 Technical Task Closed Brian Chan  
          4.
          Allow importing ZIP file with a JSON file for just one layout page template entry with only page template name LPS-107756 Technical Task Closed Brian Chan  
          5.
          Page Template REST API supporting layouts of columns and fragments with configuration LPS-107755 Technical Task Closed Ruben Pulido  
          6.
          Support importing layouts of columns added to the page and the fragments inside its columns LPS-107757 Technical Task Closed Brian Chan  
          7.
          Structure inside of zip should be flexible LPS-109994 Technical Task Closed SE Support  
          8.
          Allow to also import thumbnail for page templates LPS-110404 Technical Task Closed Brian Chan  
          9.
          Enable importing of page templates through the UI LPS-109972 Technical Task Closed Ruben Pulido  
          10.
          Support importing the configuration of all the fragments of the page LPS-107758 Technical Task Closed SE Support  
          11.
          Support importing inline content introduced within fragment editable elements LPS-107759 Technical Task Closed SE Support  
          12.
          Integration tests for import LPS-107761 Technical Task Closed Brian Chan  
          13.
          Support importing the look & feel configuration of the page LPS-107762 Technical Task Closed Brian Chan  
          14.
          Product QA | Test Scenarios/Cases Creation LPS-109560 Technical Testing Closed David Gutiérrez Mesa  
          15.
          [BUG] The imported content page template has Draft label LPS-110789 Technical Task Closed Yang Cao  
          16.
          [BUG] Should show success message when import content page template with fragments that are not found in current site LPS-110790 Technical Task Closed Yang Cao  
          17.
          [BUG] The image description is not imported with content page template LPS-110792 Technical Task Closed Yang Cao  
          18.
          [BUG] The edited inline content of HTML is not imported LPS-110793 Technical Task Closed Yang Cao  
          19.
          [BUG] The thumbnail of content page template can not be imported LPS-110794 Technical Task Closed Yang Cao  
          20.
          Product QA | Test Validation - Round 1 LPS-110803 Technical Testing Closed David Gutiérrez Mesa  
          21.
          Product QA | Test Validation - Round 2 LPS-110814 Technical Testing Closed David Gutiérrez Mesa  
          22.
          Test Scenarios Coverage | Frontend LPS-110815 Technical Testing Closed Ruben Pulido  
          23.
          Test Scenarios Coverage | Backend LPS-110816 Technical Testing Closed SE Support  
          24.
          Take into account the referenced master page when importing a page template LPS-110884 Technical Task Closed Jürgen Kappler  
          25.
          When importing a page template with a reference to a non existing fragment that reference is lost even if fragment is later imported LPS-111671 Impedibug Closed Yang Cao  
          26.
          Product QA | Test Validation - Round 3 LPS-112894 Technical Testing Closed Manoel Cyreno  
          27.
          More integration tests for import LPS-113293 Technical Task Closed Jürgen Kappler  

            Activity

              People

              Assignee:
              manoel.cyreno Manoel Cyreno
              Reporter:
              jorge.ferrer Jorge Ferrer
              Engineering Assignee:
              Jürgen Kappler
              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