Copy the following code to the Web. xml file for Liferay:
Copy the following code to portal-ext.properties:
Company.security.auth.type=userid
Auto.login.hooks=com.liferay.portal.security.auth.basicautologin,com.liferay.portal.security.auth.casautologin
# Disable Auth pipeline (we use CAS for all this via Auto.login.hooks)
Auth.pipeline.pre=
Auth.pipeline.enable.liferay.check=false
Code to modify CAS client: Edu.yale.its.tp.cas.client.Util
Fo
We already know a lot of kinds of processing file upload code, more typical such as Apache famous FileUpload, of course, Liferay for us have considered, we can use Liferay upload files with the API to deal with file upload problem, This core interface is the Com.liferay.portal.kernel.upload.UploadPortletRequest interface.
For the simplest example, we're going to upload a file into the portlet on the Portle
As we all know, Liferay's core framework consists of a set of velocity template files located in the $liferay_home\liferay-portal-6.1.0-ce-ga1\tomcat-7.0.23\webapps\root\ Html\themes\classic\templates Directory, some colleagues today asked me where the variables in these templates are defined.
In order to solve this problem, we found the Portal-impl.jar in the Velocityvariableimpl class file, so at a glance. Because the first line in PORTAL-NORMAL.VM
We can develop theme to let the system not use the default style.
When we create a theme project with the wizard and compile it, the project structure is shown in the following illustration:
where all the docroot below the _diffs directory are liferay from the default copy of the resource file. All we need to change is to build a parallel directory under the _diffs directory.
Example 1, change the page or style sheet:
For changes to the page and
Conclusion:
When you log in with an administrator in Liferay, navigate to Control Panel->documents and Media, and add basicdocument under the specified folder, the server does the following things:
(1) Add a record to the Dlfileentry table to represent the added document.
(2) Add a record in the Dlfileentryversion table and associate it to the Dlfileentry table through the Fileentryid foreign key to record the version information of the newly added
The liferay page can be implemented using a search container tag, which is very convenient.
HTML \ juneidongtaiportlet \ list_dongtai.jsp
HTML \ base \ init. jsp
/** * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved. * * This library is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the Free * Software Foundation
Unconsciously, I have been in the United States for more than two months. In the face of over 120 hours of work per Sprint, I have no energy to maintain my blog, so it is not updated in 2 months. Now, on Labor Day in the United States, let's take a look at my learning experience during this time.
This topic describes how to use the tarball distribution package to automate Liferay installation and deployment.
Purpose:
As we all know, the process of d
We see this article is not very happy ah, I feel is very happy, we can finally follow their own wishes to write a code, in Liferay some basic additions and deletions of the code is automatically generated, but we want to achieve their own method, I am afraid that a little effort, You have to know that every technology is necessary to study and learning, not always feel that the automatic generation of things do not have any good research, in fact, you
Liferay by default in the case of Tomcat, jetty and other servers, automatically install the Marketplace-portlet-6.2.0.1.war package, implement automatic deployment of the store, generally do not need the store, so delete the following package:/portal-master/portal-impl/src/com/liferay/portal/deploy/dependencies/plugins1/marketplace-portlet-6.2.0.1.warIf you need to implement automatic deployment of other p
The problem is that Websphare, Servletcontext.getcontextpath () Gets the value "/" rather than the empty string.The following code is in the/portal-master/portal-impl/src/com/liferay/portal/spring/context/portalcontextloaderlistener.java file:if (Serverdetector.iswebsphere () _portalservletcontextpath.isempty ()) { = Stringpool.blank;}Modified to:if (Serverdetector.iswebsphere () (_portalservletcontextpath.isempty () | | _portalservletcontext
Original: http://blog.csdn.net/hantiannan/article/details/7311845
In the Menu Add button, list the portlet.
But in many cases our site uses only a subset of the content.
How to hide some unwanted portlets.
There are two ways of doing this:
The first is to modify the configuration file: Portal-web/docroot/web-inf/liferay-display.xml
Put what you don't need in the Category.hidden.
Your own portlet, you need to modify the
The general solution to the continuous repetition of the submission of the following methods.
Method A, commit after the submit button is disabled (most people do this)Method II, the use of Session, the second part of the token, set a value for the first time, after the request to the first and this token to compare;Method three, data processing success immediately redirect to another page
Liferay in the foreground uses the client script (may be jquer
It is very easy to get the portal site to use its own theme (subject) in Liferay, as follows:
(1) In Dock-bar, select Manage->page Layout->look and Feel
(2) then select "Define a specific look and feel for this page"
(3) then select our custom theme (for example, we developed a theme named Demo-theme and have deployed it to the Liferay server)
(4) Finally save, close the pop-up window, refresh the pag
Page layout1: Table layoutThe main fields are:
Field
Privatelayout
0 represents a public page
Field
LayoutID
If there are many interfaces in the same community, LayoutID represents each interface, in order
Field
Parentlayoutid
If there are sub-pages under a page you need to specify Parentlayoutid
Field
Priority
Indicate which pages in the same community are at the same level in priority order
CRM includes esales, eservice, and emarketing. CRM sales mainly starts from the business opportunity inquiry in the sales process, refines the sales process into the sales stage, and summarizes, analyzes, and makes decisions for each sales stage to improve the sales efficiency ..
Solution Overview
CRM System
The CRM
Two kinds of results of management concept"Keeping an eye on employees" and "keeping an eye on employee performance" are two different ways of managing thinking. The former is more common in Chinese traditional "bosses" and some company managers, the managers of the management staff like "Stare at Thieves", for fear that their employees will be lazy. The latter is a more enlightened "result-oriented" management thinking mode, managers do not pay attention to the staff in the work of the details,
Talking about CRM does not mention Siebel and talk about the carpenter does not mention Luban is just as unreasonable. I am from the reporter interview Siebel the first Chinese area manager Wang Qiang's article to seek to feel out.
Wang Qiang said 1995 Siebel Company launched the Siebel 95 product is the first real sense of CRM products. But this product is the first product of the Siebel company, playing
In the/portal-master/portal-web/docroot/html/portlet/dockbar/add_panel.jsp fileThe following will be included:if (hasaddcontentandapplicationspermission) { "content,applications");} if (haslayoutaddpermission) { "page");}Modified to:if (hasaddcontentandapplicationspermission) { "applications");} if (haslayoutaddpermission) { "page");}Remove the following content:"/html/portlet/dockbar/add_ content.jsp" /> Liferay 6.2 Retrofit Series Three
1. A single JSP file is directly suffixed with. jsp; a JSP file containing multiple JSP files is suffixed with. jspf.
2. Use single quotes in JS files
Confirm ('
3. Use the field set to wrap the input box
4. Use the built-in liferay Separator
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.