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

If an Asset is renderer with a DPT, its view counter is not incremented in DB

    Details

      Description

      Display Page Templates should increment the view counter when they are used for displaying an asset.

      Currently we are incrementing the asset view counter in other places in where the asset is renderer, but not when is renderer in a DPT.

      Steps to reproduce:

      1.- Go to Site Builder > Page Templates > Display Page Templates and create a new DPT for Basic Web Content Article and subtype Basic Web Content.

      2.- Inside the Display page template, drop a Content display fragment in order to the basic web content being rendered.

      3.- Publish the Display Page Template (Test DPT)

      4.- Go to Content > Web Content and  create a new Basic web content (wc-1)

      5- Create a new Basic web content (wc-2) and in the lateral menu under "Display Page Template" Section > choose "Specific Display Page Template" and select Test DPT

      6.- Drop a new asset publisher to a widget page.

      7 .- open Asset Publisher configuration. Under Display Settings tab set "Table" as display template, check "View Count Increment" inside "Enable" section. Add the "view Count" inside Metadata's "Current" box. Save this configuration.

      8.- Go to Control Panel  ->  --Configuration  ---> System Settings -> Assets and inside Display Page Template section, check "Enable increment view counter".

      9.- In the Asset publisher, click in wc-1 and wc-2 to show the detail

      10.- Observe the increment in the ViewCount column of Asset Publisher

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jorge.garcia Jorge García Jiménez
              Reporter:
              jose.jimenez Jose Jimenez
              Participants of an Issue:
              Recent user:
              Jason Pince
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 1 week, 5 days ago

                  Packages

                  Version Package
                  7.2.10 DXP FP5
                  7.2.10.2 DXP SP2
                  7.2.X
                  7.3.1 CE GA2
                  7.3.2 CE GA3
                  7.3.10 DXP GA1
                  Master