block

An article by Gaspard Bucher

Define a group of elements that should be stored in a template in order to be used by ajax calls.

  1. action
  2. ajax
    1. add
    2. ajax?
    3. block
    4. cancel
    5. drop
    6. edit
    7. js
    8. start_node
    9. swap
    10. toggle
  3. API
  4. classes
  5. common attributes
  6. conditions
  7. context
  8. dates
  9. display
  10. forms
  11. i18n
  12. meta
  13. SQLiss
  14. urls

Define a group of elements that should be stored in a template in order to be used by ajax calls.

  • name (optional)
see filter, link, start_node
<r:filter update='img_list' key='f'/>
<div id='img_list' do='block'>
  <ul do='images from site' where='v_title like "%[param:f]%"' order='name' limit='5'>
    <li do='each' do='img' mode='pv' link='self'/>
  </ul>
</div>

<r:filter update='funky_list'/>
...
<div id='funky_list' do='block'>...</div>

<r:projects in='site' do='link' update='preview'/>
...
<div id='preview' do='block'>...</div>

This feature currently works with filter but not yet with edit. Make sure you put the ‘filter’ tag outside of the block.