Skip to content

Commit

Permalink
style/docs: rename and move some settings
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleyboar committed Feb 12, 2024
1 parent ddea33f commit ff6c727
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 16 deletions.
29 changes: 16 additions & 13 deletions taccsite_cms/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,18 +299,6 @@ def gettext(s): return s
# for example, CEP_AUTH_VERIFICATION_ENDPOINT=https://dev.cep.tacc.utexas.edu
CEP_AUTH_VERIFICATION_ENDPOINT = 'http://django:6000'

########################
# TACC: NEWS / BLOG
########################

TACC_BLOG_SHOW_CATEGORIES = True
TACC_BLOG_SHOW_TAGS = True
# To flag posts of certain category or tag, so template can take special action
TACC_BLOG_CUSTOM_MEDIA_POST_CATEGORY = 'sample_value_e_g__mutlimedia__'
TACC_BLOG_SHOW_ABSTRACT_TAG = 'sample_value_e_g__redirect__'

TACC_BLOG_CATEGORY_ORDER = ['press-release', 'feature-story', 'multimedia', 'podcast']

########################
# TACC: SOCIAL MEDIA
########################
Expand All @@ -328,7 +316,22 @@ def gettext(s): return s
TACC_CORE_STYLES_VERSION = 0

########################
# CLIENT BUILD SETTINGS
# DJANGOCMS_BLOG: TACC
########################

# Only effective with a DJANGOCMS_BLOG
# SEE: https://github.com/TACC/Core-CMS/blob/ddea33f/taccsite_cms/settings_custom.example.py#L139-L185

TACC_BLOG_SHOW_CATEGORIES = True
TACC_BLOG_SHOW_TAGS = True
# To flag posts of certain category or tag, so template can take special action
TACC_BLOG_CUSTOM_MEDIA_POST_CATEGORY = 'sample_value_e_g__mutlimedia__'
TACC_BLOG_SHOW_ABSTRACT_TAG = 'sample_value_e_g__redirect__'

TACC_BLOG_CATEGORY_ORDER = ['press-release', 'feature-story', 'multimedia', 'podcast']

########################
# DJANGO
########################

# Application definition
Expand Down
7 changes: 5 additions & 2 deletions taccsite_cms/settings_custom.example.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,12 +184,15 @@
# Miscellaneous settings
BLOG_ENABLE_COMMENTS = False

# TACC settings
########################
# DJANGOCMS_BLOG: TACC
########################

TACC_BLOG_SHOW_CATEGORIES = True
TACC_BLOG_SHOW_TAGS = True

########################
# CLIENT BUILD SETTINGS
# DJANGOCMS_BLOG: DJANGO
########################

# TACC/Core-CMS-Resources#75: Load custom urls.py so we can add urlpatterns for taggit_autosuggest
Expand Down
2 changes: 1 addition & 1 deletion taccsite_custom

0 comments on commit ff6c727

Please sign in to comment.