Issue
- In Liferay 6.1 and 6.2, if you opened a Document as and Admin, you had the information about the number of downloads.
- This is missing in DXP 7.0+
Environment
- Liferay DXP 7.0+
Resolution
In DXP 7.0+, you can make this piece of information appear in Site Administration and in the Documents and Media portlet.
1. Site Administration:
The following property manages what columns appear in Site Administration > Content > Documents and Media. By default, it has these values:
dl.entry.columns=name,size,status,modified-date,create-date,action
- Modify the default values by adding the property to your portal-ext.properties file and adding "downloads" like this:
dl.entry.columns=name,size,status,modified-date,create-date,action,downloads
- Restart the server
- Navigate to Site Administration > Content > Documents and Media
- Set the view to "Table" view
- The Downloads column will appear in the table
2. Documents and Media portlet
- Place a Documents and Media portlet on the page
- Open its Configuration
- On the Setup tab, scroll to the section called "Entries Listing for List Display Style"
- Add the Downloads field (by moving it from Available to Current)
- Save the configuration
- Choose the Table view for the Documents and Media portlet
- The Downloads column will appear in the table