How does Tsys modify the static page generation format?

Source: Internet
Author: User


Recently, many people are very interested in tsys. What you don't know is that tsys's asp version has been stopped for a long time. In order not to let such a good thing be buried, I am in the asp version of tsys.
On the basis of this, a more powerful cms is re-developed using PHP, and its name is blackhand. This version retains all the advantages of tsys. In addition, it shields the disadvantages of tsys and adds
A lot of great functions, if you are interested, you can take a look.
In addition, the asp version of tsys requires the webmaster to write asp scripts. Similarly, for flexibility, this PHP version requires the webmaster to write PHP scripts. Only in this way can the webmaster be more flexible, it can be used for other features that cms does not dare to involve or never can do. this is the true meaning of tsys!
PHP tsys browser page: Http://hi.baidu.com/see7di/blog/item/4daf1955bd555bc8b745ae93.html
PHP tsys: Http://download.csdn.net/source/3248406
How does Tsys modify the static page generation format?

You do not need to modify it. If you want to change the original 2004/0730/***. htm format to 20040730/***. htm, find the CreateFile_Fun.asp file in the Manage/Include directory. First, find the logical storage path of the generated file.

The following code snippet: tPath = Directory & \ "/\" & Year (AddTime) & \ "/\" & Create_id (AddTime) & \ "/\" & NewsId & Def_FileExtension

Code.

Modify it:

The following code snippet: tPath = Directory & \ "/\" & Year (AddTime) & Create_id (AddTime) & \ "/\" & NewsId & Def_FileExtension

Then find the section in the physical storage path of the generated file.

The following code snippet: tPath = Server. MapPath (Directory)
If Not Fso. FolderExists (tPath) Then
Fso. CreateFolder (tPath)
If Def_CreateNewsFiles_ShowFolderError And Err. Number <> 0 Then
Response. Write \ "execution error:
\ "& TPath &\"The path does not exist. Check the path. \"
Response. End
End If
End If
TPath = tPath & \ "/\" & Year (AddTime)
If Not Fso. FolderExists (tPath) Then
Fso. CreateFolder (tPath)
If Def_CreateNewsFiles_ShowFolderError And Err. Number <> 0 Then
Response. Write \ "execution error:
\ "& TPath &\"The path does not exist. Check the path. \"
Response. End
End If
End If
TPath = tPath & \ "/\" & Create_id (AddTime)
If Not Fso. FolderExists (tPath) Then
Fso. CreateFolder (tPath)
If Def_CreateNewsFiles_ShowFolderError And Err. Number <> 0 Then
Response. Write \ "execution error:
\ "& TPath &\"The path does not exist. Check the path. \"
Response. End
End If
End If

Modify it:
The following code snippet: tPath = Server. MapPath (Directory)
If Not Fso. FolderExists (tPath) Then
Fso. CreateFolder (tPath)
If Def_CreateNewsFiles_ShowFolderError And Err. Number <> 0 Then
Response. Write \ "execution error:
\ "& TPath &\"The path does not exist. Check the path. \"
Response. End
End If
End If
TPath = tPath & \ "/\" & Year (AddTime) & Create_id (AddTime)
If Not Fso. FolderExists (tPath) Then
Fso. CreateFolder (tPath)
If Def_CreateNewsFiles_ShowFolderError And Err. Number <> 0 Then
Response. Write \ "execution error:
\ "& TPath &\"The path does not exist. Check the path. \"
Response. End
End If
End If

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.