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
In the internal development standard of DrupalPHP 1.2, the preface is often said: "There are no rules, not a square ". Good programming styles and specifications are important to developers and project management personnel. When a software project tries to comply with public consistency standards, it makes it easier for the developer involved in the project to understand the code in the project and understand the program status. Enable new participants to quickly adapt to the environment and pre
Drupal uses cURLPost to send an object. This article introduces how Drupal sends a file through cURLPost. if you are using Drupalcms, please refer to it. As we all know, PHP's cURL extension can be used in this article to introduce how Drupal sends a file via cURL Post. if you are using Drupal cms, please refer to it.
Drupal reads the Excel file and imports it to the mysql database program code. This article introduces How to Read Excel from Drupal and import it to the mysql database. here we will introduce the use of the excel plug-in PHPExcel, PHPExcel is used to operate the OfficeExcel document. This article introduces How to Read Excel from Drupal and import it to the mysq
If you have met a large-scale Drupal project, you may have found that the files directory is too large to be a huge challenge to development. How to keep the development server (or your personal computer) synchronized with these files is a very painful thing, but if you do not, often because the user uploaded files or attachments can not be used, so that many important issues in the site development process can not be found.There are many ways to solv
bound the website domain name to the/sites level. To solve this problem, we can easily find/drupal/sites/all/default. /settings. php (by the way, it is also in this file to modify the Mysql link password) [php] $ databases = array ('default' => array ('database' => 'drupal _ flabc ', 'username' => 'root', 'Password' => '000000', 'host' => 'localhost', 'Port' => '', 'driver '=> 'mysql', 'prefix' => '',); tu
This article mainly introduces Drupal using Phpexcel to read Excel and import the database example, the need for friends can refer to the following Phpexcel is a PHP class library that is used to manipulate office Excel documents, based on Microsoft's OPENXML Standard and PHP language. You can use it to read and write spreadsheets in different formats, such as Excel (BIFF). xls, Excel 2007 (Officeopenxml). xlsx, CSV, Libre/openoffice Calc. ODS, Gnum
Drupal _ configuration after website migration. Some problems have been encountered after the website is migrated to the server. here we summarize: 1. no response, no prompt, and blank page 2 is returned. there is content, but it is disordered and many are lost, in addition, there are no CSS-like websites that encounter some problems after migrating to the server. here we will summarize:
1. no response, no prompt. a blank page is returned.
2. there is
Drupal reads Excel and imports database instances
This article mainly introduces how Drupal uses PHPExcel to read Excel and import the database. For more information, see
PHPExcel is a PHP class library used to operate Office Excel documents. It is based on Microsoft's OpenXML standard and PHP language. You can use it to read and write workbooks in different formats, such as Excel (BIFF ). xls, Excel 2007
Document directory
Module description file-x.info
Module implementation file-×. Module
Module Installation File-X. Install
Drupal module installation path
The module in Drupal can be installed in three paths
The modules under the root directory are all Drupal system modules. It is better to avoid the trouble of upgrading.
/Sites/All/modules. The modules u
Phpexcel is a PHP class library for working with Office Excel documents, based on the Microsoft OPENXML Standard and PHP language. You can use it to read and write spreadsheets in different formats, such as Excel (BIFF). xls, Excel (Officeopenxml). xlsx, CSV, Libre/openoffice Calc. ODS, Gnumeric, PDF , HTML, and so on.
One, Drupal calls Phpexcel through the libraryAfter downloading the phpexcel, upload it to the
This article to introduce a Drupal through the Curl post to send a file implementation, if you are using Drupal cms do not go into the reference oh.
It is well known that PHP's curl extension can be used to simulate form submissions. There is a drupal_http_request function in Drupal to execute an HTTP request that can send a file by post, but it is not as easy to
This article mainly introduces how Drupal uses PHPExcel to read Excel and import the database. For more information, see PHPExcel, which is a PHP class library used to operate Office Excel documents, it is based on Microsoft's OpenXML standard and PHP language. You can use it to read and write workbooks in different formats, such as Excel (BIFF ). xls, Excel 2007 (OfficeOpenXML ). xlsx, CSV, Libre/OpenOffice Calc. ods, Gnumeric, PDF, HTML, etc.
1.
The difference between Memcache and Redis is not discussed in this article. Theoretically, if drupal's Redis module is reasonably written (without looking at the source code, let's make a rough estimate), Redis's Performance Improvement on drupal will certainly be larger than Memcache, the expansion of a single data structure saves a lot of complicated operations in Memcache, with the addition of Redi
The difference between Memcache and Redis is not d
So-today I wanted to learn-to-export a Drupal database to a file quickly. Back on the day I would ' ve logged in through CPanel and navigated to PHPMyAdmin, then manually select an export of the DAT Abase and has to choose where to save the file. Not to mention all the previous steps listed would need to being preceeded by a Drupal cache flush (I don't like the cache in Side a database backup). Typically th
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
1. Cancel the display of the above dockbar
This is the default code in the liferay topic, that is, all login users will display this control bar.
Dockbar is the top column.
#if ($is_signed_in) #dockbar()#end
Change to the following:
#if (($is_signed_in) $permissionChecker.isCompanyAdmin($company_id)) #dockbar()#end
Non-admin users will not be displayed
Ii. Access prohibited
You can still access the Control Panel through this connection:
Http: // lo
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.