Dream weaving three-level linkage screening, calling tag method for dream weaving linkage category

When we use dream weaving as a website, we often use the function of multi-level linkage and linkage screening of weaving dream classification information. Although weaving dreams comes with the function of linkage category, the new category in the linkage category that comes with dedecms can not be called normally in the foreground. I also tried many kinds, and finally found a convenient and simple method.

The following is the effect picture I made with this method; let's take a look at the three-level linkage filtering of dream weaving and the method of making dream weaving linkage category call label!

Three-level linkage screening effect diagram of Dream Weaving

Background display renderings

Weaving Dream Linkage Screening Backstage Effect Picture

1. The first step: Copy the two files below to the root directory include folder and choose to replace ( Note: The file download address is at the bottom of the article. If you have done secondary development of dream weaving before, please backup these two files carefully before replacing them. Files )

Dream weaving linkage call label

2. The second step: delete the disabled php call tag, in the background "system parameters" other options "template engine disable tag: php delete

3. The third step, add dream weaving linkage screening parameters: in the background "core" channel model "content model management" classification information model ( you can also choose a normal article model or any other model )

4. The fourth step is to add a new field under the model. The specific adding method is as follows. You need several levels of linkage to add several fields (this method I used three fields as shown in Figure 1 above)

4. Step 5: Calling the Dream Weaving Linkage Tag

<!--织梦前台联动筛选调用标签-->
<!-- 模型ID :内容模型的id  类型 : 1(文字) 2(下拉)3 (单选) -->

{dede:php}AddFilter(模型ID,类型,"字段1");{/dede:php}

<!--首页调用方法 -->
{dede:php}AddFilter(模型ID,类型,"字段1",栏目id);{/dede:php}
    
<!-- 内容页调用方法 -->
{dede:php}AddFilter(模型ID,类型,"字段1",栏目id,1);{/dede:php}


<!--调用标签案例-->
{dede:php}AddFilter(-8,1,"fengge");{/dede:php}

 

File download address: https://download.csdn.net/download/qq_39339179/15543656

 

 

 

Guess you like

Origin blog.csdn.net/qq_39339179/article/details/114318028