The method of using Empire tag to highlight the current column
The editor would like to share with you the way to highlight the current column with Empire tags. I hope you will gain a lot after reading this article. Let's discuss it together.
How to use Empire tags to highlight the current column?
Highlight the current column with Empire Custom tags
After a test, I found a convenient method, which is specially recorded here.
1. Because you want to use custom tags, you should first add a custom function to\ e\ class\ userfun.php, that is,
The code is as follows:
/ / get the top-level column ID function function user_GetTopBclassid ($classid) {global $class_r; $fr=explode ('|', $class_r [$classid] [featherclass]); $topbclassid=$fr [1]? $fr [1]: $classid;// gets the first-level column id return $topbclassid;}
2. Next, use the smart tag to call the navigation part, and dynamically obtain the current column id and parent column id.
The code is as follows:
Home page [eVloop = {'select classid,classname,classpath,bclassid,bname from [! db.pre!] enewsclass where bclassid=0 order by classid',0,24,0}]