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