Director Operations (South Africa)
Director Operations(South Africa)
Outsourcing, IT Solutions and Consulting
KTree Computer Solutions India (P) Ltd., (An ISO 9001:2008 Certified Company) Pavani Plaza, Fifth Floor,Panjagutta, Opposite to Josalukas, Hyderabad-500082.India
251 Main Street, Wilmington, MA.01887 Phone : +1 978-223-2212 Fax : 978-824-2364
KTree Computer Solutions India (P) Ltd.,
(An ISO 9001:2008 Certified Company)
Pavani Plaza, Fifth Floor,
Panjagutta, Opposite to Josalukas,
KTree Computer Solutions Inc,
251 Main Street,
Posted 2 years, 9 months and 27 days ago
Liferay displays document automatically extracted metadata. When user uploads a document Liferay automatically store document metadata and document content to file system. Document default metadata will display when previews document. Document default metadata contains information about Author, created date, Modified Date, Company etc…
Some time we might require to hide document default metadata to for some security reasons. To achieve this we require to implement a hook. Hook requires to update a jsp page to show document default metadata to only OmniAdmin user. Find jsp page from bellow location from your Portlet ROOT folder,
To know more about implement a Liferay hook follow link here. Find below change to view_file_entry.jsp page, by applying below validation; Liferay can stop showing document default metadata to normal portal users.
In the above snippet if we add an IF clause/condition to the original code then Liferay will not show/display document default metadata to normal portal users.