Solve some problems of generating static and dynamic pages by dede, and how to generate dynamic records by collecting and storing trains

Source: Internet
Author: User

--------------------------------------------------------
Wind 13 is out of date
Reprinted, please indicate the author and Source
------------------------------------------------------
1. How to modify the default release as a dynamic page;
This is actually very simple. You can change the html! Open the dede folder, open article_add.php in the editor, and find <td width = "90"> release options: </td>
<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>
Change to: <td width = "90"> 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 publish article page to see if you can! DW can be used for intuitive modification.
2. How to modify dynamic publishing to static generation in batches or vice versa.
Use phpmyadmin to open the dede_de_archives table.
The ismake field is the object to be modified.
Run the SQL statement:
UPDATE 'dede _ archives 'SET 'ismake' ='-1' to change all documents to Dynamic Browsing.
UPDATE 'dede _ archives 'SET 'ismake' = '1' to change all documents to static release.
In this way, you can
2. Modify the static page release and dynamic generation of train logon. When the train collects data into the database, if the direct static release is very CPU-consuming, dynamic release will be much better!
Download a train's dede login module first! In many places
Modify the module in WEB Publishing;
Select the POST parameter, and change ishtml = 0 to dynamic POST, and ishtml = 1 to static POST.
The tutorials and tests written by cainiao are all feasible. If you have any experts, please correct them.

Reprint please indicate out of im286.com, this post address: http://www.im286.com/viewthread.php? Tid = 1839236

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.