Solve some problems of Dede generation static page and dynamic page conversion, and the method of generating dynamic of train collection and storage _php skills
Source: Internet
Author: User
--------------------------------------------------------
Wind 13 behind the start
Reprint please indicate the author and the source
------------------------------------------------------
1. How to modify the default publication as a dynamic page;
This is actually very simple, will be changed to HTML on it! Open the Dede folder, open the article_add.php with the editor, and find <td width= ":</td>" > Publishing options
<td> <input name= "ishtml" type= "Radio" class= "NP" value= "1" checked>
Generate HTML
<input name= "ishtml" type= "Radio" class= "NP" value= "0" >
Dynamic browsing only </td>
Modified to: <TD width= > Release Options:</td>
<td> <input name= "ishtml" type= "Radio" class= "NP" value= "1" >
Generate HTML
<input name= "ishtml" type= "Radio" class= "NP" value= "0" checked>
Dynamic browsing only </td>
Refresh the post page to see if you can do it! With DW can be very intuitive to modify.
2. How to batch modify dynamic publishing for static generation, or in turn modify.
Open dede_dede_archives This table with phpMyAdmin
Ismake This field is the object we want to modify.
To run the SQL statement:
UPDATE ' dede_archives ' SET ' ismake ' = '-1 ' modify all documents for dynamic browsing
UPDATE ' dede_archives ' SET ' ismake ' = ' 1 ' Modifies all documents for static publishing
That's it, okay?
2. Modify the static page release and dynamic generation of the train login. When the train collects the storehouse, if the direct static release is very occupies the CPU, the dynamic release will be much better!
First download a train's Dede login module! Lots of places to go.
Modify the module in Web publishing;
Select article release parameters, publish post data there modify ishtml=0 for dynamic release, ishtml=1 for static release.
The beginner writes the tutorial, the test all is feasible. Please correct me if you have a master.
Reprint please specify from the outdated im286.com, this post address: http://www.im286.com/viewthread.php?tid=1839236
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.