after adding a document by portlet 'Documents and media' im trying to open the document within asset publisher, which is not working and detail view is not shown.
After publishing a document is is displayed inside of asset publisher. The document is visible by anyone (Guest role).
The asset publisher display settings are configured to show full content (Asset link behaviour) but after click on document it is not opening the detail page. It is just refreshing the hole page.
My setup is linux x64 tomcat 7 and liferay set up by myself. But i've tried liferay tomcat bundle in different versions too. I did not hook the asset publisher.
Problem was i used java8. Liferay does not support java8, even if most is working with it.
Related
I am using liferay 6.1. I have many journal articles(Web content). When I publish to remote server. Liferay publish one specific article despite no changes in it. I have written Listener on journal article.
It is liferay problem. If we place journal article on web content display portlet and place on particular page e.g. Home page. If we publish on remote server with selecting the home page It will publish that webcontent as well despite no change in it.
The webcontent will not publish if you select any other page and publish If you not updated that webcontent.
I have installed Liferay 6.2 in my personal site. But i need Documents and Media Display view same as Liferay 6.0.6 not like 6.2 format ,Because when i click Liferay 6.2 documents at Documents and Media Display it is drive to another details page, i need to download documents when i click documents (same as 6.0.6)
If any one have HOOKs for Documents and Media Display and how to change "rowHREF" line please guide me.
You might want to consider to look into "ADT" (Application Display Templates). Some of Liferay's Portlets accept Freemarker templates for the display. For example Media Gallery does, and comes with an example in the global scope. Check if Document and Media Display has the same (or just use Media Gallery).
I have installed Liferay 6.1 in my personal site.
But i need Documents and Media Display view same as Liferay 6.0.6 not like 6.1 format ,Because when i click Liferay 6.1 documents at Documents and Media Display it is drive to another details page, i need to download documents when i click documents (same as 6.0.6)
How to change 6.1 Documents and Media Display view like 6.0.6 .
Generally speaking, in order to "override" the out-of-the-box functionality of Liferay portlets you will need to hook the respective JSP pages.
The Document Display renders file entries in a search container with rowHREF(line 111) controlling the navigation to the details page. The download URL (line 473) within that page doesn't appear to use anything that you wouldn't have access too "higher" up.
So, you should be able to do something similar to the following in place of the if/else.
rowHREF = DLUtil.getPreviewURL(fileEntry , fileEntry.getLatestFileVersion(), themeDisplay, StringPool.BLANK);
Of course, this assumes you'll always want the latest version of the file. If you want to provide the ability to download "archived" versions, then I would suggest leaving the details navigation in place and consider alternative means by which to provide download functionality. For example, we use Category Navigation + Asset Publisher with a custom Display Template to allow a browsable/filterable alternative to directly exposing Documents and Media Display as we wanted to restrict that portlet's scope of use to admin-only.
I am using eclipse ide and I have created a liferay project Test-portlet. I haven't written any code for this project
When I ran this project I got the usual welcome screen and I added the Test-portlet to the page and removed other stuff from the page.
I actually want to create a website using liferay. The website already exists which should be rewritten in liferay.
So when I load the project I get this welcome screen and the Test-portlet. At the top of this page I get the the menu-Admin,Sites,.... and LIferay logo on LHS.
I wish to remove all of these and displa only the web page data of the website. I know I can use themes and layouts for such purpose.
If I should use portlet to create this website , how should I keep adding pages and designs?
Also how should I add pages,themes,templates to this portlet?
Before creating this Test-portlet project, I had created pages using control panel.
How should I create this website? Using portlet by creating project?
EDIT:
Also this Test-portlet is displayed as a small portlet on the entire page. WHen click on the gear symbol and click on maximise, it only maximises during that time and when project is run again, it comes back to its original size.
Should I create this websiste using portlets?
Data for website comes from database. Few pages have static data.
Subsequent pages may be added in future.
HOw should the pages be added if I use portlet to create the website?
Please go through liferay themes and liferay layouts
I'm looking for the Related Content portlet in Liferay, and in particular for Social Office. I know about the Asset Publisher and Related Assets portlet. But I can seem to find the Related Content portlet? I'm using 6.1 CE of Liferay and I just installed the newest Social Office CE yesterday. Was this portlet removed/deprecated?
This page claims that there is this feature: http://www.liferay.com/products/liferay-social-office/features
And this page says the portlet should already be there. But I don't see it.
http://www.liferay.com/documentation/social-office/2.0/user-guide/-/ai/lp-2-0-soen01-social-office-features-0
Any help would be great. Thanks.
Related Assets will only display when there actually are related assets. Further, AFAIK it will not show when you show all blogposts (the documentation says it's on the Blogs page), but when you select one article.
Alternatively, if you have sufficient permissions, enable "Edit Controls" in the dockbar and the portlet will appear (greyed out and without content).
Another alternative, if it indeed is not there, you might be able to change the social office site template and add it to the template.