diff options
author | ivan <ivan> | 2011-10-14 06:12:12 +0000 |
---|---|---|
committer | ivan <ivan> | 2011-10-14 06:12:12 +0000 |
commit | 73f5e04d374686ab656fc4de9dc94d339f0e24b3 (patch) | |
tree | 3fd9bd7ef00aff2592f02e022a29d3e72c63e4c8 | |
parent | 7be14461501d310b006b17592fcb1bb341577344 (diff) |
docs
-rw-r--r-- | httemplate/browse/elements/browse.html | 28 |
1 files changed, 23 insertions, 5 deletions
diff --git a/httemplate/browse/elements/browse.html b/httemplate/browse/elements/browse.html index 9099d6538..cf3bde01a 100644 --- a/httemplate/browse/elements/browse.html +++ b/httemplate/browse/elements/browse.html @@ -1,6 +1,24 @@ -<% include( '/search/elements/search.html', - 'really_disable_download' => 1, - 'disable_nonefound' => 1, - @_, - ) +<%doc> + +Example: + + <& elements/browse.html, + 'title' => 'Things', + 'name_singular' => 'thing', + 'query' => { 'table' => 'tablename', }, + 'count_query' => 'SELECT COUNT(*) FROM tablename', + 'header' => [ 'Label' ], + 'fields' => [ 'columnname' ], + 'disableable' => 1, + 'disabled_statuspos' => 2, + #All options from /search/elements/search.html are available. + &> + + %> +</%doc> +<& /search/elements/search.html, + 'really_disable_download' => 1, + 'disable_nonefound' => 1, + @_, +&> |