search

Home  >  Q&A  >  body text

tp3.2.3 Front-end volist loop problem

1.pngThe code in the picture wants to output columns and articles belonging to that column at the same time. It can output columns and articles, but it cannot control the fixed number of output for each column. The background limit can only control the total number of articles output. . I would like to ask how I can control each column to output fixed articles.

盛夏默忆盛夏默忆1694 days ago1161

reply all(1)I'll reply

  • 盛夏默忆

    盛夏默忆2020-04-08 16:12:39

    The solution has been found. The control layer code is used incorrectly. I originally used the simplest select method. The two data tables were queried and output separately. The front-end code could not control the output. Use the foreach method to connect the two data in the control layer. If the table is output again, the control problem can be solved. You don’t need to use the template’s <if condition>, but it’s still a problem because you’re not familiar with your own code.

    reply
    0
  • Cancelreply