Home >
Backend Development >
PHP Tutorial >
Solve some problems of converting dede to generate static pages and dynamic pages, and how to collect and store dynamic pages by train_PHP tutorial
Solve some problems of converting dede to generate static pages and dynamic pages, and how to collect and store dynamic pages by train_PHP tutorial
WBOY
Release: 2016-07-21 15:55:39
Original
1164 people have browsed it
-------------------------------------------------- ------ Feng Shisan was first released Please indicate the author and source when reprinting ----------------------- ---------------------------------- 1. How to modify the default publishing to a dynamic page; This is actually very It’s simple, you just need to be able to change html! Open the dede folder, open article_add.php with an editor, and find the
publishing option:
"radio" class="np" value="1" checked> Generate HTML > Dynamic browsing only Modified to: "radio" class="np" value="1"> Generate HTML
Only dynamic browsing Refresh the published article page and see if it works! DW can be used to modify it very intuitively. 2. How to batch modify dynamic publishing to static generation, or vice versa. Use phpmyadmin to open the dede_dede_archives table The ismake field is the object we want to modify. Run the sql statement: UPDATE `dede_archives` SET `ismake` = '-1' Modify all documents to dynamic browsing UPDATE `dede_archives` SET `ismake` = '1' Modify all documents to static publishing That’s it 2. Modify the static page publishing and dynamic generation of train login. When trains are collected and stored in the database, direct static publishing will consume a lot of CPU, but dynamic publishing will be much better! First download a dede login module for trains! There are many places where you can modify the module under WEB publishing; Select article publishing parameters and publish POST data and modify ishtml=0 for dynamic publishing and ishtml=1 for static publishing. Tutorials and tests written by novices are feasible. If there are experts out there, please correct me.
Please indicate that the reprint is from lagging im286.com, the address of this post: http://www.im286.com/viewthread.php?tid=1839236
http://www.bkjia.com/PHPjc/318239.html
www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/318239.htmlTechArticle--------------------- -------------------------------- Feng Shisan is behind the times. Please indicate the author and source when reprinting ------ ------------------------------------------------ 1. How to modify the default...
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn