Diagram of the website creation process in opencms-to the people who are new to opencms

Source: Internet
Author: User

Many people have heard about opencms, and have learned about its power and simple download and installation. Finally, they have seen opencms for a long time. After seeing its simple interface, they are quite confused, how can I use this product? How can I use it to build a website? Where can I start? Why can't I start with it? I can't find any materials. I have a few rare matches. After a few twists and turns, I am forced to pay attention to time and many other factors, many people reluctantly choose to give up ......
I hope this article will be helpful to the followers of opencms, but it is only a glimpse of opencms. We need to make a lot of other efforts to make its powerful functions available ......

1. Switch to "/sites/" and create the website directory "testweb"

Enter the directory title, which is the name of the website. Then you will see its usefulness. It will be displayed under "website ......

The created result is as follows:

2. Configure tomcat, open the tomcat/CONF/server. xml file, and add the following blue selected area content:

3. Open tomcat/webapps/cms623/WEB-INF/config/opencms-system.xml and add the following blue selected area content:

4. Restart Tomat and log on to opencms. In the "website" list box, the website "My trial website" is displayed, for example:

Switch to "my site trial", and the demo is as follows: This is the "root folder" of our site ......

5. Create site module: COM. testweb. WWW, for example, to (module creation process please refer to: http://blog.csdn.net/qianxuncms/archive/2007/04/06/1554192.aspx ):

Create a template (see http://blog.csdn.net/qianxuncms/archive/2007/04/09/1557085.aspx for template creation) with the following content:

<% @ Taglib prefix = "CMS" uri = "http://www.opencms.org/taglib/cms" %>
<HTML>
<Head>
<Title> <CMS: property name = "title"/> </title>
<Meta HTTP-EQUIV = "Content-Type" content = "text/html; charset = <CMS: property name =" content-encoding "default =" UTF-8 "/>"/>
</Head>
<Body>
<H2> trial site template </H2>
<CMS: Include element = "body"/>
</Body>
</Html>

6. Create a project, including Site Resources and module resources (a separate article will be provided after the project is described here). For example:

7. Use a template to generate a page, switch to the testwebproj project, switch to "my website trial", and create a "page", for example:

You can also enter the suffix "my website trial-TEMPLATE 1" for the "indexing index.html system will activate"

After the page is created, edit the page and enter the content

Save. The browsing effect is as follows:

8. Publish a project. For example, confirm the current project as "testwebproj" and click "Publish a project"

 

After the announcement is complete, switch to the online project and select "My trial website" for the website"

Click index.html. The result is as follows:

In this case, the browser URL is: http: // localhost: 8081/cms623/opencms/index.html. Exit opencms and ask the site created by opencms directly through this URL, after loalhost is changed to a lan ip address, other machines in the LAN can also browse the site. So far, a simple site is created through opencms ......
Thank you for choosing opencms-the first blog in Chinese resources. You are welcome to directly communicate with the author and make progress together. MSN: [email protected], QQ: 9165456.

For many other resources, please refer to opencms

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.