0

I'm using Liferay 6.1.0 GA1.

I want to have items per page displayed in Documents and Media portlet stored in user session. I tried to change view_file_entries.jspf and view.jsp in ../document_library_display/, which I belive are the files that handles this view, but with no luck.

Can somebody guide me where to do it? I know how.

KamilGA
  • 7
  • 5

1 Answers1

0

Documents and Media and Document and Media Display are two separate portlets.

So if you want to change for Documents & Media then you would have to change JSPs in /html/portlet/document_library/ and the JSPs that would be of help would be view_entries.jsp and init.jsp.

Another suggestion, you can even think about storing the items/page as User preference instead of User session.

We might be able to help more if you show us some code and elaborate more on your question.

Prakash K
  • 11,669
  • 6
  • 51
  • 109
  • I meant Document and Media Display I belive. One in control panel, where You are browsing files. – KamilGA Jan 05 '15 at 09:49
  • In the control-panel there is only `Document & Media`, the display portlet is an instanceable portlet to be put on various pages. The JSPs in DM portlet are reused for control-panel, essentially its the same portlet. – Prakash K Jan 06 '15 at 06:41
  • So should I now include this two jsp from basic Liferay 6.1.0 GA1? – KamilGA Jan 07 '15 at 07:58
  • Yes you can try with that. – Prakash K Jan 08 '15 at 13:45