Reply netizen zxg12777 About OpenCMS

zhaozj2021-02-16  51

> From:

> TO: <

Lvkrnewer@hotmail.com>

> SUBJECT: OpenCMS problem

> DATE: TUE, 22 JUN 2004 11:38:41 0800 (CST)

>

> Mr. Luke let you:

> I have been watching OpenCMS these days, what is the benefit of using the OpenCMS management website? What is the function of OpenCMS, how to use it.

I use OpenCMS's time is not long. The following aspects may be possible to calculate the reason why OpenCMS is worthy of managing your website content:

OpenCMS template mechanism can help you develop fast pages;

OpenCMS's Offline / Online mode ensures that your online debug will not affect your external network user;

OpenCMS flex cache can improve your page, especially the generation efficiency of dynamic pages;

OpenCMS file upload, image management can save your FTP account;

OpenCMS Link Check can help you check the DEAD LINK in the page;

OpenCMS version management mechanism allows you to easily retract to a previous version.

In addition, you can expand OpenCMS, join your favorite or need.

OpenCMS should have some other functions that I haven't touched yet :)

Of course, OpenCMS is not well implemented, some features still there is bugs, such as her version control function is still far from ways to CVS, VSS, etc., comparable to the currently popular version control tools.

My personal opinion: OpenCMS is used to manage the small and medium-sized site below 100,000; it is more powerful; it is too powerful for managing ordinary personal sites; it is used to manage Page View's large-scale site in 500,000. It seems that some power is not from the heart.

> I installed the OpenCMS 4.6.0. After the landing, I tried it several times and won't use it. Can you advise the following.

There will be a feeling of starting with OpenCMS when you start to contact OpenCMS :). Maybe I can give you guidance :)

For the first time I entered OpenCMS, what you are in the so-called online mode (note the top of the screen Project: next to the drop-down box), you can't do anything in Online mode, because OpenCMS almost does not allow you to do anything in Online mode modify.

On the top of the screen Project: Select "Offline" next to the drop-down box, while selecting "Explorer" in the drop-down box next to: Enter the Explorer view in Offline mode (do not spend too much time to study the Administration view Those functions), here is the OpenCMS virtual file system (VFS), these files in VFS are originally stored in the database, log in to the database you choose during the installation process, look at those database tables, you probably Some understand.

Below, roughly browse the VFS directory structure:

/ release directory: In the Workplace on the right side of the Explorer view, click the left mouse on the folder in front of the Release - Right to right with the mouse in the Windows file system, you will not adapt when you start - View The properties of the folder, pay attention to "Navtext: Release Notes" in the attribute list, Lenovo you

Http://your.host:Port/opencms/opencms/index.jsp The top navigation "Release Notes" in the top.

Then enter the / release directory, see those files in the directory, check the properties of these files, and compare the "navtext" property of each file with your http://your.host :port/opencms/opencms/ Tips in the release / page in the navigation bar.

Below we tried to modify the "navtext" attribute of one of the files to verify the corresponding relationship with the prompts in the navigation bar: first try to lock some of the files - click on the left button on the file icon, select "Lock " The value of the "navtext" property. Then click the left button on the "name" of the file to open the file in a new window, you will find the prompt in the navigation bar to change :)

Now we try to create a directory "foo" in the root directory: Click the fourth "New" button on the top of the upper part of the Explorer view (possibly in the version "New" button in the version you can in other What location, select "Folder" in the "New" dialog, then fill in the "Create A New Folder" dialog box:

Name: foo

Title: foo

Add to Navigation: True

NavigationText: Foo Demo

Position in navigation: at the last position

In the next step, OpenCMS requires you to create a default display page for your new folder, a page similar to Index, fill in the dialog box:

Name: index.html

Title: INDEX Page of Foo Demo

Template: Welcome / Release Notes Template

Copy Body from: EMPTY BODY

Keywords: Index foo

Description: The Default Page of the Foo Demo

Add to Navigation: True

Text in navigation: Index Page of Foo Demo

INSERT AFTER: At the first positionat the last position

This way you have successfully added a folder and an Index page. On the file icon, click the left button to activate the shortcut menu. Select "Edit Page" to open the OpenCMS visual editor, save some content in the editor and save and exit the editor (note the top of the top tool bar on the top of the visual editor) Introducing the button), click "Name" to open the file in the new window, you will find some content in addition to the content you entered into, Lenovo "Template: Welcome / Release Notes Template", Yes, this It is the template of OpenCMS. However, this is also a template for OpenCMS - XML ​​template - current OpenCMS force is based on JSP-based templates, you can find relevant information from the official documentation of OpenCMS.

Go back to the root of the VFS, click INDEX.JSP to open in a new window, at this point, there is a "foo demo" in your navigation bar, click in, you are your index.html. Note that you are currently in OFFLINE mode, you don't do these modifications before you don't have to release "Publish", you can't see it outside OpenCMS, which is why I have always stressed that I have to click File in Workplace. " "Opens the file in a new window instead of launching a new browser window and access the corresponding page.

Repeat the previous process, try to add other folders and files to see what will change.

Let's take a look at other directories in VFS.

/ SYSTEM / BODIES: Take a look at the foo, release, very similar to the Based foo and release folders, yes, the files stored here are the contents - Body

/ system / login: Take a look at the files, think about your login interface

/ system / modules /: For all modules of OpenCMS, you will be able to import the exported modules through the module management feature in the Administration view.

/ System / Workplace: Store this OpenCMS user interface, compares the / system / workplace / administration / below the directory and those function modules in the Administration view.

For the primary use of OpenCMS, you will introduce these. If you have time, you can see the official documentation of OpenCMS :)

> Install OpenCMS 5.0 old appearance

> javax.servlet.ServletException: OpenCMS Initialization Error!

> COULD NOT CONNECT to THE DATABASE. Is The Database Up and Running?

>

> Error, I don't know why.

From the error message, it should be your database problem. In the case where the database is already started, OpenCMS is successfully installed, you can try to write a simple JSP page, use your {OpenCMS_HOME_DIR} /web-inf/config/opencms.properties to try to connect your database. If your test JSP can connect the database normally and can perform simple SELECT operations successfully, I can only suggest that you can't create the database DROP you, then open OpenCMS's Ocsetup reinstall :(

>

> Hope to tell as soon as possible, thank you.

>

>

> A programmer:

> 2004.6.22

转载请注明原文地址:https://www.9cbs.com/read-20946.html

New Post(0)