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

'Add Portlet'/'Change Layout' links in theme fail after migration from 6.0 to 6.1

    Details

      Description

      In a theme for 6.0.6 CE, I created links to Dockbar functionality (adding a portlet and changing the layout template) for users with appropriate privileges following this wiki entry.

      After upgrading to 6.1.20 EE (all patches up to date), the 'add portlet' link shows the 'Add Application' dialog as expected, but expanding portlet categories ('Collaboration', 'Community', etc.) fails intermittently and silently. Furthermore, a 'change layout' link throws the following error:

      TypeError: Liferay.LayoutConfiguration.showTemplates is not a function

      Attempted this fix described in the forums with no success.

      Steps to reproduce:

      1. In theme for 6.0.6 CE, create links to Dockbar functionality for users with appropriate privileges following this Wiki entry: http://www.liferay.com/community/wiki/-/wiki/Main/Link+to+Dockbar
      1. In 6.1.20 EE, confirm 'add portlet' link shows 'Add Application' dialog as expected, but expanding portlet categories ('Collaboration', 'Community', etc.) fails intermittently and silently
      1. In 6.1.20 EE, confirm 'change layout' link throws the following JavaScript error:
        TypeError: Liferay.LayoutConfiguration.showTemplates is not a function
      1. Restore method/functionality from 6.0.6 CE to 6.1.20 EE

        Attachments

          Activity

            People

            Assignee:
            michael.saechang Michael Saechang
            Reporter:
            nickpiesco Nick Piesco (Inactive)
            Participants of an Issue:
            Recent user:
            Esther Sanz
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              6 years, 13 weeks, 1 day ago

                Packages

                Version Package