Closed wesleyboar closed 4 months ago
Do not show "TAG - " or "ARCHIVE - " et cetera in filtered News.
Add/Edit taccsite_cms/settings.local.py to have BLOG_… settings.
taccsite_cms/settings.local.py
BLOG_…
Verify in your settings that BLOG_AUTO_SETUP = True.
BLOG_AUTO_SETUP = True
Add/Edit urls_custom.py to have custom url path('taggit_autosuggest/', include('taggit_autosuggest.urls')).
urls_custom.py
path('taggit_autosuggest/', include('taggit_autosuggest.urls'))
(Re-)Start Core-CMS instance.
(If using pre-existing Core-CMS instance) Run build and collect assets:
npm run build:css
docker exec -it core_cms sh -c "python manage.py collectstatic --no-input"
Open https://localhost:8000/.
In CMS main nav, click homepage, then "News". If News is unavailable, debug News/Blog installation (internal document).
At http://localhost:8000/admin/djangocms_blog/blogcategory/, "Add blog category" with the Name "Test".
Edit root user via CMS Admin. Set First name to "Root".
root
Verify heading on these pages is exactly as expected:
Overview
Do not show "TAG - " or "ARCHIVE - " et cetera in filtered News.
Related
Changes
Testing
Add/Edit
taccsite_cms/settings.local.py
to haveBLOG_…
settings.
```py ######################## # DJANGOCMS_BLOG ######################## from taccsite_cms.settings import INSTALLED_APPS tacc_app_index = INSTALLED_APPS.index('taccsite_cms') INSTALLED_APPS[tacc_app_index:tacc_app_index] = [ # 'filer', # already in Core # 'easy_thumbnails', # already in Core 'parler', 'taggit', 'taggit_autosuggest', # 'meta', # already in Core 'sortedm2m', 'djangocms_blog', ] # REQ: 'taggit_autosuggest' requires the following is added to `urls.py` """ urlpatterns += [ # Support `taggit_autosuggest` (from `djangocms-blog`) url(r'^taggit_autosuggest/', include('taggit_autosuggest.urls')), ] """ # Paths for alternate templates that user can choose for blog-specific plugin # - Devs can customize core templates at `templates/djangocms_blog/`. # - Users can choose alt. templates from `templates/djangocms_blog/plugins/*`. # - Devs can customize alt. templates at `templates/djangocms_blog/plugins/*`. BLOG_PLUGIN_TEMPLATE_FOLDERS = ( ('plugins', 'Default'), # ('plugins/alternate', 'Alternate'), ) # Change default values for the auto-setup of one `BlogConfig` # SEE: https://github.com/nephila/djangocms-blog/issues/629 BLOG_AUTO_SETUP = True BLOG_AUTO_HOME_TITLE ='Home' BLOG_AUTO_BLOG_TITLE = 'News' BLOG_AUTO_APP_TITLE = 'News' BLOG_AUTO_NAMESPACE = 'News' # Miscellaneous settings BLOG_ENABLE_COMMENTS = False ```BLOG_…
settingsVerify in your settings that
BLOG_AUTO_SETUP = True
.Add/Edit
urls_custom.py
to have custom urlpath('taggit_autosuggest/', include('taggit_autosuggest.urls'))
.sample file content
```py from django.urls import path, include custom_urls = [ path('custom_test/', include('apps.custom_example.urls', namespace='custom_test')), # To support `taggit_autosuggest` (from `djangocms-blog`) path('taggit_autosuggest/', include('taggit_autosuggest.urls')), ] ```(Re-)Start Core-CMS instance.
(If using pre-existing Core-CMS instance) Run build and collect assets:
npm run build:css
docker exec -it core_cms sh -c "python manage.py collectstatic --no-input"
Open https://localhost:8000/.
In CMS main nav, click homepage, then "News". If News is unavailable, debug News/Blog installation (internal document).
At http://localhost:8000/admin/djangocms_blog/blogcategory/, "Add blog category" with the Name "Test".
Edit
root
user via CMS Admin. Set First name to "Root".Verify heading on these pages is exactly as expected:
UI