Examples of the use of Liferay theme

Source: Internet
Author: User

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 style sheet, this is the simplest, as long as the _diffs directory to create parallel directories and overwrite the file you want to change the same name, such as we want to add a line at the top of the topic called "Add the Content here!", then we only need in _ Diffs the Templates folder, and then modify the PORTAL_NORMAL.VM, as shown in line 27th of the following code:

<! DOCTYPE html> #parse ($init)  

We compile, deploy this theme to the Liferay server, and then select our customized theme (Charles-theme) in the Lifray Control Panel, which will display our new addition at the top of the page:

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.