We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 9207 ☆ A M B ☆
    • 2,475 Posts
    Is it possible to have getResources output cells for a table? The current tpl parameters are *close*, but not quite... you’d need something like a wrapper tpl for every Nth result, e.g.

    trTpl:
    <tr>[[+content]]</tr>


    tpl:
    <td>[[+pagetitle]] and other stuff</td>


    And you’d need another parameter to determine how many cells are in each row, e.g. perRow or something...
    [[!getResources?  
      &parents=`123` 
      &tpl=`tpl`
      &trTpl=`trTpl`
      &perRow=`3`
    ]]


    I think I’ve wandered into feature request territory, but just wanted to field it here first. Any input is welcome!
      • 30912
      • 463 Posts
      Is there a definate number of cells and TV's for it? you could wrap the getResources call inside the tr tags similar to a list.

      i.e

      <table>
      <tr>
      [[getResources? 
        &parents=`123`
        &tpl=`tpl`
      ]]

      </tr>
      </table>

      and have the tpl as

      <td>[[+pagetitle]] [[+content]] [[+nexttv]] [[+nextnexttv]]</td>