Conclusion:
Theme Upload logo will do the following things:
(1) Using Uploadportletrequest object to handle the
(2) for the uploaded logo picture is empty, then throw an exception.
(3) for the upload of the logo picture is not empty, the first from the database to find the current layout, for logo definition logoid, and bar logoid add to the current layout and then back to the database, and then set according to the Boolean variable to determine whether it is the logo associated to the hook
After learning the ant build theme, Liferay theme, we easily ported the theme project to Maven. The following are the specific steps:
Assume:
Because we used the http://supercharles888.blog.51cto.com/609344/890525 development structure as shown in the article, let's assume we put the theme we're developing in D:\WalmartProject.
First: Let's use the Maven Theme Wizard to create a theme:
Once created, because we want our pom.xml to inherit Father
. Servicecomponentlocalserviceimpl.java is the core of the class, if you carefully study the code of this class will have other gains, here is only one example: you can see that this class actually supports the operation of upgrading the database, As long as the previous tablesql and the new TAblesql inconsistent, will perform the upgrade database operations, according to our thinking, we deployed two times the tables.sql is inconsistent, why not execute this code? Debugging finds that the Table
Code fragment:
As any Web site, the login page is an indispensable part, such as the corresponding map of the following login page:
The corresponding code fragment is in the/html/portlet/login/login.jsp under root application:
The corresponding code for the
The project team is now developing with Maven, and the original non-MAVEN project is migrating to the MAVEN project, and for our development, we assume the following directory structure:
One of the items directly below the total project to create a walmart-parent-pom.xml, as Father Pom file, this file does not do anything, only to do with the environment-related settings. Each subproject (green, Yellow Square) has a pom.xml, and the pom.xml of these subprojects will inherit the Father Walmart
Analyzed the whole day and managed to fix the problem: Modify the Jetspeed Deployment profile: web-inf/conf/jetspeed.properties, change the username and password inside to and Tomcat's conf/ The administrator's username and password in the
# # Find the Tomcat/conf/server.xml configuration file and find the connector element for the corresponding port number. Then configure Emptysessionpath= "true".
Eg:
#2 Session.setattribute in the class, add Portletsession.application_scope.
Remove the unused content from the Portal Settings page:In the/portal-master/portal-impl/src/portal.properties file, the following configuration is available:# # Input A list of sections that would be included as part of the company# settings form. #
In order to make the user information closer to the actual needs, modify the following information:1, let the login name can use the number, ".", "_" and so onIn the/portal-master/portal-impl/src/portal.properties file, the following configuration
Demand:
Suppose we have the following requirements:
Assuming access to http://172.29.175.236:8080, the Http://172.29.175.236:8080/web/charles-site page is eventually accessed
Assuming access to Http://172.29.175.236:8080/web, the final access
Of course, for picture files, we can not use yui-compressor to compress, but we can bar a number of small pictures sprite into a large picture and then give the coordinates of each picture, thereby reducing the number of network IO overhead.
The
When booting Tomcat, console error:Com.liferay.portal.OldServiceComponentException:Build namespace ievents have Build number 444 which is newer than 438.This is because the Build.number is modified in the Service.properties file each time the
In the previous chapter we introduced, from the browser to the server to get resources, you can use gzip to get the browser is compressed resources to reduce network download time, then we can consider from the source, that is, we from the source
Summarize:
When we add a folder to the control Panel, we actually insert a row of records in the Dlfolder table of the database: The record information contains the information entered by the user and the user's Id,repositoryid. The most subtle
In the/portal-master/portal-impl/src/portal.properties file, the following configuration is available:# Input A list of sections that would be included as part of the form when# updating a site. #sites.
CDN services are generally not available in industry customers, so the CDN Dynamic resource feature is turned off by default:In the/portal-master/portal-impl/src/portal.properties file, the following configuration is available:Truefalse do not
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.