summaryrefslogtreecommitdiff
path: root/httemplate/browse/elements/browse.html
diff options
context:
space:
mode:
Diffstat (limited to 'httemplate/browse/elements/browse.html')
-rw-r--r--httemplate/browse/elements/browse.html24
1 files changed, 24 insertions, 0 deletions
diff --git a/httemplate/browse/elements/browse.html b/httemplate/browse/elements/browse.html
new file mode 100644
index 000000000..cf3bde01a
--- /dev/null
+++ b/httemplate/browse/elements/browse.html
@@ -0,0 +1,24 @@
+<%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,
+ @_,
+&>