OpenCms Creating Web site Process Diagrams--for OpenCms beginners

Source: Internet
Author: User

Many people have heard of OpenCms, know that it's strong, simply download the installation, and finally saw a long-lost OpenCms, saw its simple interface, after the joy of the face is not a blank, how to use it, how I use it to build a station, from where to start, do not know, find information, less double, after many setbacks , forced by time and many other factors, many people reluctantly chose to give up ...
I hope this article can be helpful to OpenCms's followers, but it is only opencms fur, and it will take more effort to use its powerful function.

First, switch to "/sites/", create the site folder "TestWeb"

Enter the title of the folder, this is the name of the site, you will see the use of it for a while, it will be displayed under the "Site" ...

The results after creation are as follows:

Second, configure Tomcat, open the Tomcat/conf/server.xml file, add the following blue selection content:

Third, open the Tomcat/webapps/cms623/web-inf/config/opencms-system.xml, add the following blue selected area content:

Four, restart Tomat, login to OpenCms, at this time in the "Site" list box will appear we created the site "My test Site", hair, such as:

Switch to "My test Site", shown as, this is the "root directory" of our website ...

V. Create a Web site module: com.testweb.www, such as (see the module creation process in: http://blog.csdn.net/qianxuncms/archive/2007/04/06/1554192.aspx):

To create the template (see: http://blog.csdn.net/qianxuncms/archive/2007/04/09/1557085.aspx), the template content is as follows:

<%@ taglib prefix= "cms" uri= "Http://www.opencms.org/taglib/cms"%>
<title><cms:property name= "title"/></title>
<meta http-equiv= "Content-type" content= "text/html; Charset=<cms:property name= "content-encoding" default= "UTF-8"/> "/>
<body>
Templates for <cms:include element= "Body"/>
</body>

VI. create the project, including the site resources and module resources (detailed introduction of the project will be a separate article, in this first not much to say), such as:

Create a page with a template, switch to the Testwebproj project, and then switch to "my test Site" and create a new "page" such as:

The name is entered as "index.html", or you can enter the "index" system to automatically increase the ". html" suffix, template Select the "My test Site-template One" just created

After creating the page, edit the page, enter the content

Save and browse the results as follows:

Viii. publish the project, for example, to determine that the current project is "Testwebproj", click "Publish Project"

When the publication is complete, switch to the online project, and the site selects my test site

Click to browse index.html, results such as:

At this point the URL of the browser is: http://localhost:8081/cms623/opencms/ index.html, Exit OpenCms, can be directly accessed through this URL OpenCms created Web site, loalhost for LAN IP, the other machine within the LAN can also browse this site, thus through the OpenCms to create a simple website ...

Transferred from: http://blog.csdn.net/qianxuncms/article/details/1557694

OpenCms Creating Web site Process Diagrams--for OpenCms beginners

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.