• customer service QQ:    WeChat: Contact number: 18613993467     

How to use the associated designer function in decoration websites

Suyou Network (10 years of experience), serves tens of thousands of companies, and has fixed transparent quotations.Domain name registration, hosting /One-stop service for server and website source code.A physical company, a professional team, worth choosing!Website building business: corporate website construction, company official website production, foreign trade website construction, website imitation, website copying, imitation site, foreign trade website construction, single-page customer service WeChat【 suyoufuwu】


When we do decoration and verse websites, we will encounter design cases that need to be associated with corresponding designers and designers, or poems related to the authors and authors, etc., as shown in the picture:

Case related to its designer:


Designer-related cases:



However, Yiyou itself does not have this function, so we need to carry out secondary development. Let’s introduce the method of second opening, which mainly involves three files. We provide the file download package, directly download the decompression and overwrite and directory, and modify the relevant corresponding models according to your own website. ID Just do it.

Download the second file:

application.zip


Modify relevant templates according to your own website ID The method is as follows:

The modification mainly involves two files: DiyExtend.php and archives_extend.htm

Open first DiyExtend.php File, path as follows application\admin\controller,打开后找到$condition['a.channel'] = array('eq', 9);

“9”Modify it into your designer model ID Or the model of the poet ID,(Note: Here is

Model ID, Not a column ID),Model ID You can click "Function Map"-"Channel Model" in the background to view it, as shown in the figure:



Open the file DiyExtend.php Afterwards, find the corresponding place to put the designer ID Modify it into your own website's designer model ID, As shown in the picture:



After modification, find the second file archives_extend.htm, The path is application\admin\template\diy_extend, Find it after opening {if in_array($params.channeltype, [3,10])},3,10It's the column you need to associate with the design ID If multiple columns, you can separate the commas. (Note: Here ID For column ID, Not a model ID),For example, the column you need to associate with the designer is a case display. If you find this column in the backend column management, you can view the column. ID, As shown in the picture:


Add a column that needs to be associated with a designer ID After that, the modification has been completed at this step. When you go to the background, you can see that the column you associate with designers has more options to choose a designer, as shown in the figure:

It's that simple. As long as you are careful, Xiaobai can complete it.




The above is the "How to use the associated designer function for decoration websites" shared by Suyou. Thank you very much for reading this article patiently. We will provide you with more information on reference, use or learning and communication.We can also provide you with:Enterprise website construction, website imitation, website copying, imitation site, foreign trade website construction, foreign trade website construction, company official website productionFor services, our company serves customers with the service concept of "integrity, professionalism, pragmatism and innovation".If you need cooperation, please scan the code to consult, and we will serve you sincerely.

TAG Label:

National branch station

National branch station