Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use proper eZ Find fetches in default admin2 and standard search templates #78

Merged
merged 1 commit into from Dec 13, 2012
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
15 changes: 8 additions & 7 deletions design/admin2/templates/content/search.tpl
Expand Up @@ -2,13 +2,14 @@
{let search=false()}
{section show=$use_template_search}
{set page_limit=10}
{set search=fetch(content,search,
hash(text,$search_text,
section_id,$search_section_id,
subtree_array,$search_subtree_array,
sort_by,array('modified',false()),
offset,$view_parameters.offset,
limit,$page_limit))}
{set search=fetch( 'ezfind', 'search',
hash( 'query', $search_text,
'section_id', $search_section_id,
'subtree_array', $search_subtree_array,
'sort_by', hash( 'modified', 'desc' ),
'offset', $view_parameters.offset,
'limit', $page_limit )
)}
{set search_result=$search['SearchResult']}
{set search_count=$search['SearchCount']}
{set stop_word_array=$search['StopWordArray']}
Expand Down
15 changes: 8 additions & 7 deletions design/standard/templates/content/search.tpl
@@ -1,13 +1,14 @@
{def $search=false()}
{if $use_template_search}
{set $page_limit=10}
{set $search=fetch(content,search,
hash(text,$search_text,
section_id,$search_section_id,
subtree_array,$search_subtree_array,
sort_by,array('modified',false()),
offset,$view_parameters.offset,
limit,$page_limit))}
{set $search=fetch( 'ezfind', 'search',
hash( 'query', $search_text,
'section_id', $search_section_id,
'subtree_array', $search_subtree_array,
'sort_by', hash( 'modified', 'desc' ),
'offset', $view_parameters.offset,
'limit', $page_limit )
)}
{set $search_result=$search['SearchResult']}
{set $search_count=$search['SearchCount']}
{def $search_extras=$search['SearchExtras']}
Expand Down