unknown

An article by Gaspard Bucher

Method run for all dynamic tags.

  1. action
  2. ajax
  3. API
  4. classes
  5. common attributes
  6. conditions
  7. context
    1. ancestors
    2. author
    3. comments
    4. comments_to_publish
    5. content_for_layout
    6. context
    7. count
    8. data
    9. each
    10. each_group
    11. expand_with
    12. find
    13. group
    14. node
    15. project
    16. proposed
    17. query
    18. query_errors
    19. query_parse
    20. real_project
    21. real_section
    22. redactions
    23. replies
    24. search_results
    25. section
    26. tags
    27. to_publish
    28. unknown
    29. user
    30. visitor
    31. visitor_node
  8. dates
  9. display
  10. forms
  11. i18n
  12. meta
  13. SQLiss
  14. urls

Method run for all dynamic tags.

  • from (site,project,section)
  • author (stored,current,visitor,id)
  • project (stored,current,id)
  • updated ( date selection )
  • created ( date selection )
  • event ( date selection )
  • log ( date selection )
  • section (stored,current,id)
  • direction (both) get ‘references’ and ‘reference_for’ for example.
  • or other elements to include in the query
  • else if the query fails, evaluate this
  • where pseudo sql filter
  • order specify order
  • paginate (pagination key)
see context, date selection, edit, else, link, pagination !
<r:parent do='[name]'/>
<r:children> ... </r:children>
<ul do='references' or='reference_for'> ... </ul>
<r:void store='foo'> ... <r:foo> back in 'foo' context</r:foo> </r:void>

<div do='images' from='project' order='random' limit='10'>
  <r:img mode='pv'/>
</div>
<ul do='pages' order='d_done DESC' do='each' join=', ' do='link'/>
<div do='notes from project where d_domain = fun' or='news where d_domain = fun'/>

pagination
<ul do='images' in='site' paginate='p'>
...
page count: <r:show var='p_count'/>
total images count: <r:show var='p_nodes'/>
<r:link page='previous'/> <r:show var='bar'/> <r:link page='next'/>
</ul>

TODO: move “context” examples and attributes in context and only keep information on method resolution.

introduction

This is not a method you can call, it’s just a placeholder to talk about “method missing” resolution.

The method resolves either as a query finder (SQLiss) or RubyLess method. See zafu introduction for details on the resolution.