How to modify the dedecms template to display sub-column articles

Few people will use sub-columns in website templates. If they are not very large and complex, they will not use sub-columns. Therefore, sub-columns will not be displayed when the articles are displayed. You want to display the sub-columns. The article still needs some minor revisions.
When modifying, it is modified according to the template file of Dream Weaving 5.3. If you are using a higher version of Dream Weaving Template, remember to make the modification after the file is backed up:
open /include/taglib/arclist.lib.php to
find The following code (around line 211):
if($CrossID=='') orwheres [] = ′ arc. Typeidin (′. G et S on I ds (orwheres[] = 'arc.typeid in ('.GetSonIds(orwheres[]=arc.typeidin(.GetSonIds(typeid).’)’;
else o r w h e r e s [ ] = ′ a r c . t y p e i d i n ( ′ . G e t S o n I d s ( orwheres[] = ' arc.typeid in ('.GetSonIds( orwheres[]=arc.typeidin( .GetSonIds(typeid).','.C ross ID. ′) ′; Change to if (CrossID.')'; Change to if(CrossID.);if(CrossID==’’) o r w h e r e s [ ] = ′ t y p e i d i n ( ′ . G e t S o n I d s ( orwheres[] = ' typeid in ('.GetSonIds( orwheres[]=typeidin(.GetSonIds(typeid).’) or typeid2 in (’.GetSonIds($typeid).’)’;
else o r w h e r e s [ ] = ′ t y p e i d i n ( ′ . G e t S o n I d s ( orwheres[] = ' typeid in ('.GetSonIds( orwheres[]=typeidin(.GetSonIds(typeid).’,’. C r o s s I D . ′ ) o r t y p e i d 2 i n ( ′ . G e t S o n I d s ( CrossID.') or typeid2 in ('.GetSonIds( CrossID.)ortypeid2in(.GetSonIds(typeid).’,’.$CrossID.’)’;

Guess you like

Origin blog.csdn.net/a9490489/article/details/104174139