Skip to content

Commit

Permalink
fix: wp-333 ecep search broken (#230)
Browse files Browse the repository at this point in the history
* fix: wp-333 ecep search broken

* fix: wi-69 use SEARCH_PATH setting

* fix: wp-333 cms not exporting SEARCH_PATH setting
  • Loading branch information
wesleyboar committed Nov 7, 2023
1 parent 15b1ddb commit 2cc4018
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ecep_cms/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# TACC/Core-CMS#v3.12.0-beta.3
FROM taccwma/core-cms:aba079b
# TACC/Core-CMS#743 (v4.2.0 candidate)
FROM taccwma/core-cms:7cfefff

WORKDIR /code

Expand Down
12 changes: 10 additions & 2 deletions ecep_cms/src/taccsite_cms/settings_custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,20 @@
"img_file_src": "ecep_cms/img/favicon.ico"
}

########################
# TACC: SEARCH
########################

# Support Google search instead of Portal's Elasticsearch
SEARCH_PATH = '/site-search' # cuz Portal Nginx config hijacks /search
SEARCH_QUERY_PARAM_NAME = 'q' # as Google expects

########################
# TACC: PORTAL
########################

INCLUDES_CORE_PORTAL = True
INCLUDES_PORTAL_NAV = True
INCLUDES_CORE_PORTAL = False
INCLUDES_PORTAL_NAV = False
INCLUDES_SEARCH_BAR = True

########################
Expand Down

0 comments on commit 2cc4018

Please sign in to comment.