PUBLIC - Liferay Portal Community Edition
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-26808

Generalize the ability to define display templates in Asset Publisher to allow its usage in other portlets

    Details

    • Similar Issues:
      Show 5 results 

      Description

      Recently (LPS-13699) Asset Publisher was expanded to allow defining dynamic templates to control the display style of the list of assets being shown. Currently each site can have its own set of display styles that can be used from any of the asset publisher instances placed on the site pages.

      Often, though, the same template is useful for many sites and it would be very useful to be able to share them. In order to achieve this this ticket should allow creating and managing asset publisher display styles in the global scope. Those display styles should be available to all asset publisher instances in all sites.

      It is worth considering that current the asset publisher display styles are managed through the configuration of an asset publisher instance. Since the global scope does not have pages where such an instance can be places a different way must be provided. The proposed solution is to create a new portlet that is accessed through the Control Panel for this task. This portlet should also be accessible for each individual site, since it is also useful for them.

      Since in the future, other portlets will also use dynamic display styles this feature should be added in such a way that it supports display styles from any portlet. The proposed name for the portlet is "Display Styles".

        Issue Links

          Activity

          Hide
          Juan Fernández added a comment -

          Resolving this story, as all tasks have been completed and are currently in trunk

          Show
          Juan Fernández added a comment - Resolving this story, as all tasks have been completed and are currently in trunk
          Hide
          Jorge Ferrer added a comment -

          For those interested, the following wiki page for the Milestone 1 release provides several sample application display templates that are very useful to test this feature:
          http://www.liferay.com/community/wiki/-/wiki/Main/BugSquad+-+Liferay+Portal+6.2+CE+Milestone+1+Testing

          Show
          Jorge Ferrer added a comment - For those interested, the following wiki page for the Milestone 1 release provides several sample application display templates that are very useful to test this feature: http://www.liferay.com/community/wiki/-/wiki/Main/BugSquad+-+Liferay+Portal+6.2+CE+Milestone+1+Testing
          Hide
          Evan Nagayama added a comment -

          PASSED Manual Testing using the following steps:

          1. Go to > Control Panel
          2. Assert Application Display Templates has its own place in the Control Panel
          3. Select Global in the drop down
          4. Create a global ADT for Asset Publisher (AP)
          5. Go Back to Liferay
          6. Add an AP Portlet
          7. Add a new Blogs Entry in AP so we can assert the ADT changes
          8. Options > Configuration > Display Settings
          9. Apply the custom global AP ADT to the portlet
          10. Assert the ADT applies and displays
          11. Go to > Control Panel > Sites
          12. Create a new ADT Test Site
          13. Add an ADT Test Page
          14. Go to > ADT Test Site
          15. Add an AP Portlet
          16. Add a new Blogs Entry in AP
          17. Options > Configuration > Display Settings
          18. Apply the custom global AP ADT to the portlet
          19. Assert the ADT applies and displays
          20. Assert the global ADT is functional and available to the new site

          Completed on:
          Tomcat 7.0.34 + MySQL 5. Portal 6.2.x GIT ID: 78089d81de9c768827f36584c17a3044d3c9c8d7.

          Show
          Evan Nagayama added a comment - PASSED Manual Testing using the following steps: Go to > Control Panel Assert Application Display Templates has its own place in the Control Panel Select Global in the drop down Create a global ADT for Asset Publisher (AP) Go Back to Liferay Add an AP Portlet Add a new Blogs Entry in AP so we can assert the ADT changes Options > Configuration > Display Settings Apply the custom global AP ADT to the portlet Assert the ADT applies and displays Go to > Control Panel > Sites Create a new ADT Test Site Add an ADT Test Page Go to > ADT Test Site Add an AP Portlet Add a new Blogs Entry in AP Options > Configuration > Display Settings Apply the custom global AP ADT to the portlet Assert the ADT applies and displays Assert the global ADT is functional and available to the new site Completed on: Tomcat 7.0.34 + MySQL 5. Portal 6.2.x GIT ID: 78089d81de9c768827f36584c17a3044d3c9c8d7.

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development

                  Subcomponents

                    Structure Helper Panel