How the Dream website becomes dynamic

Source: Internet
Author: User

Teach you how to make dedecms (weaving dream) into a dynamic tour of the whole station, for the enterprise station is very advantageous Oh! Sometimes dedecms all station static but for construction enterprise station unfavorable, concrete realization below, interested friend can refer to, hope to everyone has help sometimes dedecms the static of the whole station but for construction enterprise station unfavorable

1, the first page of dynamic

We simply delete the index.html generated below the root of the website,

and change the code inside the index.php to
<?PHPif(!file_exists (DirName (__file__).'/data/common.inc.php') {header ('location:install/index.php'); Exit (); } require_once (DirName (__file__)."/include/common.inc.php"); Require_once Dedeinc."/arc.partview.class.php"; $GLOBALS ['_arclistenv'] ='Index'; $row= $dsql->getone ("Select * from ' dede_homepageset '"); $row ['Templet'] = Mftemplet ($row ['Templet']); $PV=NewPartview (); $PV->settemplet ($cfg _basedir. $cfg _templets_dir."/". $row ['Templet']); $PV-Display ();?>

2, the weaving dream all columns set to "Use dynamic page", you can set up the column when you select "Use dynamic page";

You can also execute the following SQL statement.

Update Dede_arctype Set Isdefault=-1

3. Set all site documents to "dynamic only"

Execute the following SQL statement;

Update dede_archives Set Ismake=-1

You can go to "weave a dream how to execute SQL statement" to see the dream of how to execute SQL statements.

If everyone still does not understand, do not worry, we will be out of video tutorial.

Well, today's weaving dream dedecms full-site dynamic Browse to explain here, everyone goodbye.

How the Dream website becomes dynamic

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.