Skip to content

Commit

Permalink
search: order most recent news by created field
Browse files Browse the repository at this point in the history
  • Loading branch information
psaiz committed Dec 6, 2023
1 parent a300fe6 commit 4c11363
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cernopendata/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@
order=1,
),
'mostrecent': dict(
fields=['recid'],
fields=['created', 'recid'],
title='Most recent',
default_order='desc',
order=1,
Expand Down
2 changes: 1 addition & 1 deletion cernopendata/templates/cernopendata_pages/front/news.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ <h4>
</div>
<div class="more-container">
<div class="more"><a
href="{{url_for('invenio_search_ui.search', type = 'News') }}">more</a></div>
href="{{url_for('invenio_search_ui.search', f = 'type:News') }}">more</a></div>
</div>
</div>
</div>

0 comments on commit 4c11363

Please sign in to comment.