Posts

Showing posts from August, 2015

How to change Portrait/Profile photo in liferay programitically.

Sometime liferay developer need to change profile/portrait photo programmatically . Here i want to share my experience. Create portlet action url and method as below: In jsp file create action url: <script type="text/javascript" src="<%= request.getContextPath()%>/js/jasny-bootstrap.min.js"></script> <link rel="stylesheet" href="<%= request.getContextPath()%>/css/jasny-bootstrap.min.css"> <portlet:actionURL name="updateProfile" var="updateProfileURL" windowState="normal"/> <form action="<%=updateProfileURL %>" method="post" enctype="multipart/form-data" id='<portlet:namespace/>updateProfile'>                 <input name="<portlet:namespace/>userEmail" id='<portlet:namespace/>userEmail' type="hidden" value="" />                 <div class="col-xs-12 col...

Liferay enviorment set up step by step.

Image
1. Download liferay-portal, liferay-plugin from github Portal URL:https://github.com/liferay/liferay-portal Plugin URL:https://github.com/liferay/liferay-plugins You can download as zip or git clone from here. 2. Go to downloaded liferay-portal directory and run the command "ant all" Before this install java and ant. And install ecj. For this follow the below link: http://tariqliferay.blogspot.com/2015/02/liferay-builds-with-ecj-compilertricks.html After some times BUILD FAILED and show, If you already have Tomcat installed, make sure the property "${app.server.tomcat.dir}" points to your Tomcat installation. Please run the below command "ant -buildfile build-dist.xml unzip-tomcat" And then again run the command "ant all" 3. This will be created a folder named "bundle" in the same directory. 4. Go to bundle folder and there should be appear apache tomcat directory. 5. Go to bin folder and run the command ...

How to enable audio and video in liferay portal

Image
To enable audio and video in liferay portal, sign in as omadmin/admin and go to control panel--->Server Administraion--->External Services and scroll down bottom. Here you can see Xuggler. First install this. Then enable this by click on check box true. Then finally restart the server. Now you can add audio and video as web content. Here below the screen short: