Home  >  Article  >  CMS Tutorial  >  How to build a website group with dedecms

How to build a website group with dedecms

尚
Original
2019-07-18 16:31:086795browse

How to build a website group with dedecms

Site group is a wolf pack tactic Internet marketing solution. It mainly includes subdomain name site group, independent domain name site group, directory site group and other solutions. Each has its own advantages. There are also many kinds of station group software. The following is Qingfeng Website Building to introduce to you the method and process of using the most common CMS system - Dede Content Management System to build a website group, and manage and maintain multiple sites through dedecms batch website building. Although the advantages of station groups are very great, such as covering more regional keywords and providing a good marketing experience. But the water in the station group is also very deep, and all the efforts may be in vain. Site groups are not as simple as setting up multiple pages that include regional core keywords. Although many companies have established site groups, they have no effect at all. For this reason, to create a marketing site group, you need to find SEO professionals to plan the site group and cooperate with it. This can only be achieved through actual operations.

Dreamweaver enables multi-site support

When starting to use dede to build a website in batches, you need to make sure that the system parameters are configured correctly. Click in sequence: System - Basic System Parameters - Core Settings - (Yes/No) Support multi-site. After turning on this option, absolute URLs will be enabled for attachments, column connections, and arclist content: Select "Yes" for this item and save it. As shown in the figure below

How to build a website group with dedecms

##DEDE creates a new multi-site

Using DreamWeaver to construct a site group, it is very simple to build a site in batches. Just manage the site as a column. dedecms supports multiple sites. If you want to construct a site group with multiple domain names, you can also construct multiple sites based on subdomain names. Execute core - website column management - add top-level columns in sequence.
A Setting path and modelNote:
1. The column name here is no longer the name displayed on the navigation bar, but the description information of the site.
2. The column attribute must select "Channel Cover".

How to build a website group with dedecms

BSet the template and bind the siteNote:
1. Column advanced attributes enable multi-site support.
2. Bind domain name.
3. Templates for multiple sites are managed separately.
4. The TDK of the top-level column bound to the domain name is the TDK of the sub-website homepage.

How to build a website group with dedecms

Management and maintenance of Dreamweaver multi-site station group

A site has been built in the background through the above steps, but the actual work is not The display is completely completed, but certain configurations and some matters need to be paid attention to. The following is Qingfeng website construction to continue to explain to you.

A Domain Name Binding
Once you have a site, you need to bind a site to the domain name on the server and virtual host to achieve complete site access. Assume above that we use the subdomain name en.dede.com, and the directory generated by this subsite is the root directory /a/en, which needs to be bound on the server. Taking apache as an example, resolve the subdomain name to the server or virtual On the IP or alias of the host, and add the following server virtual host configuration items:

<VirtualHost *:80>
ServerAdmin http://www.sjzphp.com
ServerName en.dede.com
DocumentRoot "D:/DedeAMPZ/WebRoot/youdomain/a/en"
php_admin_value open_basedir "D:/DedeAMPZ/WebRoot/youdomain/"
</VirtualHost>
##VhostEnd

B station group configuration and model managementBecause we treat the site as a column Management, so the top-level column of the first website is the site, the second-level column is the top-level column of the actual site, and the third-level column is the second-level column of the actual site. Since the top-level column uses a set of models, the following columns will inherit the model of the top-level column by default. Often we will have multiple models when building a website, so we should pay attention to changing the model when building secondary columns of a new site.
Note:
If the inheritance option is used for the site column: At the same time, change the browsing permissions, content type, template style, naming rules and other common attributes of the subordinate columns. If you select this option, the models of all columns under this site will be revised. Do not select it.

C station group template management and template productionDue to the use of dedecms batch website building function, multiple sites are generated. Moreover, the homepages and column pages of many websites, as well as the content and styles inside, are generally different. Especially when using dedecms to create a multi-language foreign trade website, each sub-site uses different languages ​​and the natural templates are also different. In order to facilitate multi-site management, multiple directories need to be created under default to manage multi-site templates respectively. For example, we use en as the template directory for this site and place all templates under /templets/default/en/.
Note:
1. Since the template is placed under /templets/default/en/, when using the include tag, use {dede:include filename="/en/headl.htm" /}.
2. In addition, some attributes need to be changed when making the navigation bar of the subsite. type="son" typid is the column ID used by the actual subsite. For example:

<div class="collapse navbar-collapse" id="navbar1">
        <ul class="navbar-nav nav nav-tabs mr-auto">
            {dede:type typeid="29" }<li class="nav-item"><a class="nav-link theme-a-main  active" href="[field:typelink /]">主页</a></li>{/dede:type}
            {dede:channel row="8" type="son" typeid="29"}
                <li class="nav-item"><a class="nav-link theme-a-main" href="[field:typeurl /]">[field:typename /]</a></li>
            {/dede:channel}
        </ul>
        <select class="">
            <option selected >选择语言</option>
            <option value="http://cn.dede.com/" onclick="window.open(&#39;http://cn.dede.com/&#39;,&#39;_blank&#39;)">中文</option>
            <option value="http://en.dede .com/" onclick="window.open(&#39;http://en.dede.com/&#39;,&#39;_blank&#39;)">英文</option>
        </select>
      </div>

For more technical articles related to DedeCMS, please visit the

DedeCMS Tutorial column to learn!

The above is the detailed content of How to build a website group with dedecms. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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