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

How to determine if a content page is a display page

    Details

      Description

      Display Page Templates can affect this kind of assets:

      1. Web Content Article
      1. Document
      1. Blogs Entry

       

      When the page is rendering, the type of the layout is "asset_display". We can see it in the debugger in com/liferay/portal/events/ServicePreAction.java:1490

      layout.getType() => “asset_display”

       

      The constant is here: LayoutConstants.java

      public static final String TYPE_ASSET_DISPLAY = "asset_display";

       

      If the page returns other type, we don't want to show the Performance panel.

        Attachments

          Activity

            People

            Assignee:
            sarai.diaz Sarai Diaz (Inactive)
            Reporter:
            sarai.diaz Sarai Diaz (Inactive)
            Engineering Assignee:
            Sarai Diaz (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Packages

                Version Package