We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 44392
    • 1 Posts
    I use property sets


    [[$purchase.table? &rows=`[[$purchase.table.row@product1]] [[$purchase.table.row@product2]] [[$purchase.table.row_alt@product3]]`]]


    Chunk purchase.table

    <table class="table">  
      <thead>  
        <tr>  
          <th>Icon</th>  
          <th>Product</th>
          <th class="span3">Type</th>
          <th class="span2">Price</th>
          <th class="span2">Purchase</th>  
        </tr>  
      </thead>  
      <tbody>  
         [[+rows]]
      </tbody>  
    </table> 
    


    chunk purchase.table.row
        
        <tr>      
          <td rowspan="2"><img src="path_to_img"></img></td>  
          <td rowspan="2"><h3>[[+name]]</h3> <small>[[+anno]] <a  href="[[+site_url]]/software/[[+in_url_name]]/">Learn more »</a><small></td>  
          <td>Business license</td>
          <td><strong>[[+license_business.price]]</strong></td>  
          <td><a class="btn btn-success" href="[[+license_business.url]]"><i class="icon-shopping-cart icon-white"></i> Buy now</a></td>  
        </tr>      
        <tr>      
          <td>Non-Commercial license</td>
          <td>Free</td>  
          <td><a class="" href="[[+license_non_comm.url]]">Register</a></td>  
        </tr>  
    


    All information displayed is correct, except for items in the list
    [[+license_business.price]]
    [[+license_business.url]]
    [[+license_non_comm.url]]

    This output is empty.

    How to display information from a list?

    Thank you.
      • 22303 MODX Staff
      • 10,725 Posts
      Property options are not what you want here. Options define a limited set of possible values for the Property, not sub-properties to get values from.