Primay key Field
There are four ways to create the primary key:id-type= "class": In the use of a class to generate the primary, works for all Si Tuations id-type= "increment": Works for all databases supported but not in a clustered enviroment id-type= "identity": Wo Rks for DB2, MySQL, and MS SQL Server. Id-type= "id-type=" sequence "id-param=" id_sequence ": Works for DB2, Oracle, PostgreSQL, and SAP DB. Also LIFERAY-SERVICE-BUILDER_5_0_0.DTD
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
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
JavaScript Implementation method
Drupal's architecture is fully multilingual, and even JavaScript is an exception.
First let's look at how JavaScript is used in Drupal.
DRUPAL.T (' string ')Where string is required for Drupal to be translated in a multilingual string.
Drupal Javascript implements the multi-language mechanismAs a first step, all JavaScript fil
Introduction: This is a detailed page on How to reset the user password of Drupal 7. It introduces PHP, related knowledge, skills, experience, and some PHP source code.
Class = 'pingjiaf' frameborder = '0' src = 'HTTP: // biancheng.dnbc?info/pingjia.php? Id = 325733 'rolling = 'no'>Because I haven't logged on to the Drupal 7 website of my local machine for a long time, I found that I have forgotten the ad
By default, Godaddy only supports Drupal to 7.22. Currently, Drupal has been upgraded to 7.28. After Drupal 7.22 is installed, it can only be upgraded manually.
Install Drupal in: https://hostingconnection.godaddy.com/Application/Drupal.aspx
Go to Administration> Configuration> Development> Maintenance mode. Check th
Reprint: HTTPS://YPLAM.COM/POST/79Drupal Console is a set of command-line tools for Drupal 8 that generates Drupal 8 template code and can interact with Drupal 8 apps.The Drupal Console is a bit similar to the familiar Drush, but offers a different function that can be used in conjunction with Drush.Installation$ curl
Install httpd, mariadb, and PHP, start httpd and mariadb, and create a database of UTF-8 character sets.
Download Drupal core and Drupal Translations 2 files on the Drupal website: drupal-7.34.tar.gz drupal-7.34.zh-hans.po .
tar xzvf dr
It's easy to build complex and dynamic content using Drupal. But a little careless, you will pay the price for this easy. Complex database queries and costly calculations can lead to page performance problems when users view certain complex and dynamic pages. One solution is to turn on page caching in the DRUAPL background page. When the page cache is turned on, you can significantly reduce the number of database queries on some pages to improve page
What skills are needed in Drupal development? Here, let's take a look at the big screen (see below)According to the diagram above, a table is probably listed:
Technical Direction
Detailed Description
Community personnel
drupal.org account, post, organize and participate in the offline party, QQ Group, etc.
Content editing
Site comments, content, automatic publishing, audit and other skills. Menus, users,
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
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.