"Synchronization" function in opencms

Source: Internet
Author: User

In opencms, many users are not very familiar with editing JSP and other files in a way similar to text. In fact, apart from the "opencms VFS plugin for Eclipse plug-in" introduced previously, the system also provides the "synchronization" function to synchronize the content in VFS to a local machine. Similarly, after you modify the file locally, it can also be synchronized back to opencms VFS. Synchronization principle: first determine whether the file exists. If the file does not exist, synchronize it to the end without the file. If the file is stored at both ends, and then compare it with the last modification time, if the modification time is later, the new version is synchronized to the other end. With the "synchronization" function, you can also use your favorite editor to edit files in VFS. (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: qianxuncms@hotmail.com, QQ: 9165456)
The following describes how to use the "synchronization" function.
Step 1: Switch to Management View> workspace tool and you will see the "synchronization Settings" icon.

Go to synchronization settings. We can see that we need to set this option:
"Activate" -- whether to enable the synchronization function. We have a correct number and choose to activate it.
"Target folder" -- this is to synchronize the content in VFS to the directory of the local machine. We chose "D:/testweb". Note that the folder testweb must be created first.
"Virtual File System Path"-that is, the VFS path. Click the "folder" icon on the right to select the resource path to be synchronized, such as "/sites/default/testweb ".
Finally, click OK to complete the settings.

Switch back to "Browse" view and click "refresh". A "Synchronize folder" button will appear on the right of the "Settings" button,

Click "Synchronize folder". A confirmation window is displayed:

Click "OK" to start synchronization. All content under "/sites/default/testweb" under VFS will be "synchronized" to "D: /testweb/"directory,

We can see the "synchronization" content in the "D:/testweb/" directory,

In this case, create a "sync. jsp" file in the "D:/testweb/" directory, edit its content in your favorite editor, and save it.

Return to the opencms workspace and click "Synchronize folder". "sync. jsp" will be synchronized back to "/sites/default/testweb,

 

 

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.