1

ManyToOne 関連付けによってカテゴリに関連付けられたタグがあります。そして、テンプレート上のすべてのタグをレンダリングする必要がありますが、1 つの条件があります。それらはすべて、リンクされているカテゴリで分割する必要があります。次のようなものがあるはずです:

<label>Some category name</label>
   <input type="checkbox">Tag1
   <input type="checkbox">Tag2
   <input type="checkbox">Tag3

<label>Some different category name</label>
   <input type="checkbox">Tag1
   <input type="checkbox">Tag2
   <input type="checkbox">Tag3

..等々。誰か助けてください)

4

0 に答える 0