Generate HTML static pages directly in the article management list! (jing) _ Branch News related

Source: Internet
Author: User
This effect is expected to be useful


The relevant pictures of this topic are as follows:



One step to fix: Modify admin/admin_article.asp

will be 1062 lines of
Copy Code code as follows:

. Write ("<td align=" "Center" "> <a href="? Displaymode= "&DisplayMode&" &page= "& Page &" &Action=Edit& "&SearchParam&" & Id= "& Ks_rs_obj" & "' onclick= ' parent.frames[" "BottomFrame" "].location.href=" "split.asp"? opstr= Edit Article &buttonsymbol=addarticle&folderid= "& ID &" &displaymode= "& DisplayMode &" ""; > Modification </a> | <a href= ""? Action=delinfo&displaymode= "& DisplayMode &" &page= "& Page &" & "& Searchparam &" &A mp Newsid= "& Ks_rs_obj (1) &" "Onclick=" "Return (Confirm (' OK to delete the article? ')" " > Delete </a></td> ")

Replace with the following code:

Copy Code code as follows:

If Kscms. Getchannelconfig (1, "FSOHTMLTF") =1 Then
        . write  ("<td align=" "Center" "> <a href="?) Displaymode= "&DisplayMode&" &page= " & Page & " &Action=Edit& "  &SearchParam& "&id="  & ks_rs_obj  &  "'  onclick= ' parent.frames["BottomFrame" "].location.href=" "split.asp? opstr= Edit Article &buttonsymbol=addarticle&folderid= " & ID & " &displaymode= "  & DisplayMode &  "" "; > Modify </a> | <a href= ""? Action=delinfo&displaymode= " & DisplayMode & " &page= " & page  &  "&"  & SearchParam &  "&newsid="  & ks_rs_obj ( 1)  &  "" " onclick=" "return  (Confirm (' OK to delete the article? ')" " > Delete </a>| <a href= "" Include/refreshhtmlsave.asp? Channelid=1&types=content&refreshflag=id&articleid= " & ks_rs_obj (1)  &" ""  onclick= "return  confirm (' OK to generate a static file for this article? ?'))"" > Build </a></td> ")  
Else
. Write ("<td align=" "Center" "> <a href="? Displaymode= "&DisplayMode&" &page= "& Page &" &Action=Edit& "&SearchParam&" & Id= "& Ks_rs_obj" & "' onclick= ' parent.frames[" "BottomFrame" "].location.href=" "split.asp"? opstr= Edit Article &buttonsymbol=addarticle&folderid= "& ID &" &displaymode= "& DisplayMode &" ""; > Modification </a> | <a href= ""? Action=delinfo&displaymode= "& DisplayMode &" &page= "& Page &" & "& Searchparam &" &A mp Newsid= "& Ks_rs_obj (1) &" "Onclick=" "Return (Confirm (' OK to delete the article? ')" " > Delete </a></td> ")
End If


Also need to modify the width of the list column, in 980 lines, changed to the following code should be

Copy Code code as follows:

. Write ("<tr align=" "Center" "><td height=23 width=250 class=" "Sort" "> title </TD><TD width=100" "Sort" > Input </td><td width=130 class= "" Sort "> Modified date </td><td width=70 class=" "Sort" > Type < /TD><TD width=120 class= "Sort" > Properties </td><td width=120 class= "Sort" > Operations </td></tr> ")

Oh, you can generate the channel (column) home

One step to fix:

Modify the 1006th line of admin/admin_article.asp. Write ("<td align=" "Center" ">---</td>")

Replace directly with the following code:

Copy Code code as follows:

If kscms. Getchannelconfig (1, "FSOHTMLTF") =1 then 
        . write  ("<td align=" "Center" "><a href=" "include/refreshhtmlsave.asp"? Types=folder&refreshflag=folder&channelid=1 " & " &folderid= ' " & ks_rs_ OBJ (1)  & "'" " onclick=" return  (' OK to generate this section page? ') "" > Build </a></td> ") ' Yu  
       else 
        . write  ("<td align=" "Center" ">---</td>")  
        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.