Provide zblog template_zblog them_wordpress template download and customization

How to use dedecms after adding a linkage category

Tianxing Studio 2015-03-20 23:01 Dedecms tutorial ten thousand three hundred and sixty-eight 1 Comments


Recently received one dedecms I feel that dedecms and its evil father can be directly used by the backstage New linkage category , but you can't call it directly. You have to change some code. Isn't this a semi-finished product of Kendal??

The slotting is completed.

After several days of trouble, we finally solved all the problems. I will recall the process for future reference.


Step 1 : First, add the required linkage category in the background - core - linkage category management as usual, and remember to add fields in the content model management after adding.

Step 2 : Modify the file. There are four files in total, namely:

/plus/list.php

/include/taglib/infoguide.lib.php

/include/taglib/infolink.lib.php

/include/arc.sglistview.class.php

In these four files, find the two linkage categories "nativeplace" and "infotype" of all dedecms, plus the linkage category you created. The code is almost the same as those of dedecms, and so on.

Step 3 : The topic can be called directly, and the calling code is "[field: linkage category name/]"


Finally, add a place where you can cheat others. If you find that after you have done the above steps, you find that the call from the foreground is not correct at all, for example, there is "free" in the linkage category Template ”For the two options of "free template" and "paid template", when publishing in the background, the free template is clearly selected, but when clicking the free template in the foreground, it will not come out.

I just stuck here for a day, Baidu everywhere. Finally, I found out (really unintentionally) the reason why I cheated my father!

The reason is that the enumeration value in the newly added linkage category must be greater than 1000, and must be 1500, 2000, or 2500, as shown in the figure:

 How to use dedecms after adding a linkage category Adding a linkage category Calling a linkage category dedecms dedecms Tutorial Page 1

I am so depressed.... No longer love


Can't find a tutorial that can solve your problem?

You can try to search or ask questions directly online. We also provide charging technical support. If you need it, you can contact us online.

Online questions Online Service

yes one Comments from netizens:

  •  net friend

    net friend Six years ago (2018-02-16) reply

    ha-ha

welcome you Comment: Cancel Reply

 Please fill in the verification code
  • Latest articles
  • Hot article ranking
  • Most Comments
Label aggregation
  • Sign in
  • Registered account Forgot your password?
  • register
  • Already have an account? Direct login Forgot your password?
  • Social account login