Open source java CMS - FreeCMS2.8 template management

Project address: http://www.freeteam.cn/

 

Template management

Template refers to the page file that the designer has done, and after processing it into a template, it can change the layout, color, style, etc. of all the content of the web page.

Click Template Management from the left management menu to enter.

1. Add a template

 

Click "Add"

 

Enter the relevant properties and click "Save".

hint:

1) The sites that can be used can limit the sites that use this template, if you do not select Yes, it means that all sites can be used.

2) After the addition is successful, a folder named with this template id will be generated in the /templet directory.

 

If the template file is uploaded, the template compressed file will be extracted to this folder.

 

 

If no template file is uploaded, three files will be automatically generated in this folder

 

The home page refers to the home page of the site using this template. When the home page is static, the system will generate the home page of the site according to the "index.html" file under the site template.

Column page refers to the column page of the site using this template. When the column page is static, the system will generate the column page according to the "channel.html" file under the site template by default. If you specify other files in this directory as the template file of the column page , the system uses the page you specify for staticization.

Information page refers to the site information page using this template. When the information page is static, the system will generate the information page according to the "info.html" file under the site template by default. If you specify other files in this directory as the template file of the information page , the system uses the page you specify for staticization.

2. Edit the template

 

Select the template to be edited, such as "Test Template", and click the "Edit" button

Note: Only one template can be selected for editing at the same time.

 

 

Enter the relevant properties and click "OK".

3. Delete the template

 

Select the template to be deleted, such as "Test Template", and click the "Delete" button.

Tip: You can select multiple templates to delete at the same time.

 

In order to prevent the user from misoperation, the system will prompt the user to confirm, click the "OK" button to complete the deletion operation.

4. File Management

FreeCMS provides the ability to manage template files online.

 

Select the template that needs to manage files, such as "Test Template", and click the "File Management" button.

Note: Only one template can be selected for file management operation at the same time.

 

File management mainly has the following functions.

a. Upload files

You can enter the specified directory through the directory tree on the left, and then click the "Upload File" button.

 

 

Select the file to upload and click the "OK" button

 

 

b. add

You can directly add new files online, enter the specified directory and click the "Add" button.

 

 

After entering the file name and file content, click the "OK" button.

Tip: Only files with suffixes of html, js, css, and txt can be added.

 

c. Edit

You can directly edit the content of the template file online, enter the specified directory, select the file and click the "Edit" button.

 

 

After entering the file name and file content, click the "Save" button.

hint:

1) Only files with suffixes of html, js, css, and txt can be edited.

2) Only one file can be edited at the same time.

d. delete

You can directly delete the template file online, enter the specified directory, select the file and click the "Delete" button.

 

 

In order to prevent users from misoperation, the system will prompt to confirm the operation, click the "OK" button.

e. Create a folder

You can directly create a folder online, enter the specified directory and click the "Create Folder" button.

 

 

Enter the folder name and click "OK"

 

f. Rename the folder

You can directly rename a non-root folder online, enter the specified directory and click the "Rename this folder" button.

 

 

Enter the new folder name and click the "OK" button.

g. delete folder

You can directly delete the non-root directory online, enter the specified directory and click the "Delete this folder" button.

 

 

In order to prevent users from misoperation, the system will prompt to confirm the operation, click the "OK" button.

Note: Deleting a folder will also delete all files under this folder.

5. Initialize data

If there is only a template file, we cannot easily use this template. Each template will have its own column and link classification planning, so it is necessary to add the initialization data management function to the template.

Template initialization data management mainly includes two kinds of data: column and link classification.

 

Select the column to be managed, and then click the "Initialize Data" button.

Note: Only one piece of data can be initialized data management operation at the same time.

Column data:

 

The management method of column data is the same as that of column management, which will not be repeated here, please refer to column management .

Column data can be imported directly from the existing site, click the "Import from site" button.

 

Select the site to import

 

After the import is successful, the column data of the selected site will be imported into this template.

 

Link Category:

 

The management method of link classification is the same as that of link management, which will not be repeated here. For details, please refer to Link Management .

Linked classification data can be imported directly from an existing site by clicking the "Import from Site" button.

 

Select the site to import

After the import is successful, the link classification data of the selected site will be imported into this template.

6. Export

In order to facilitate the reuse of templates, the system provides a template export function. The system exports template files and template initialization data as zip files, which can be directly uploaded when adding templates.

 

Select the column to be managed, and then click the "Export" button.

Note: Only one piece of data can be exported at the same time.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326175280&siteId=291194637