Steps to change the directory and links generated by the dedecms single-page module

黄舟
Release: 2023-03-07 08:22:02
Original
1535 people have browsed it

This article mainly introduces the method of changing the generated directory and links of the dedecms single-page module. Friends who need it can refer to it. The first step is to modify the generated directory.

include\arc.sgpage.class.php
Copy after login

I believe most friends can do it here Modified by yourself..

$file name = $GLOBALS[‘cfg_base dir’].$GLOBALS[‘cfg_cmspath’].’/’.$this->Fields[‘filename’];
Copy after login

is here.

For example, what if we want to generate html instead of the website root directory?

Then we will modify it to

$filename = $GLOBALS[‘cfg_basedir’].$GLOBALS[‘cfg_cmspath’].’/html/’.$this->Fields[‘filename’];
Copy after login

It’s that simple.

The second step below. It is also the last step. It is to modify the link.

If you don’t need it, you can leave it unchanged.

include\taglib\likesgpage.lib.php
Copy after login

Modify

$row[‘url’] = $GLOBALS[‘cfg_cmsurl’].’/’.$row[‘filename’];
Copy after login

here to

$row[‘url’] = $GLOBALS[‘cfg_cmsurl’].’/html/’.$row[‘filename’];
Copy after login

Save and regenerate~~

dedecms template download address: www.php.cn/xiazai/code/dedecms


The above is the detailed content of Steps to change the directory and links generated by the dedecms single-page module. For more information, please follow other related articles on the PHP Chinese website!

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!