diff --git a/zsite/settings.py b/zsite/settings.py index 9da94d2..c3aa1d0 100644 --- a/zsite/settings.py +++ b/zsite/settings.py @@ -112,8 +112,9 @@ SITE_ID = 1 TEMPLATE_LOADERS = ( 'django.template.loaders.filesystem.Loader', + # important! place right before django.template.loaders.app_directories.Loader + 'aldryn_boilerplates.template_loaders.AppDirectoriesLoader', 'django.template.loaders.app_directories.Loader', - 'django.template.loaders.eggs.Loader' ) MIDDLEWARE_CLASSES = ( @@ -142,7 +143,8 @@ TEMPLATE_CONTEXT_PROCESSORS = ( 'django.core.context_processors.tz', 'sekizai.context_processors.sekizai', 'django.core.context_processors.static', - 'cms.context_processors.cms_settings' + 'cms.context_processors.cms_settings', + 'aldryn_boilerplates.context_processors.boilerplate', ) TEMPLATE_DIRS = ( @@ -176,7 +178,36 @@ INSTALLED_APPS = ( 'djangocms_video', 'reversion', 'pipeline', - 'zsite' + 'zsite', + + # Newsblog + 'aldryn_common', + 'aldryn_apphooks_config', + 'aldryn_boilerplates', + 'aldryn_categories', + 'aldryn_newsblog', + 'aldryn_people', + 'aldryn_reversion', + 'easy_thumbnails', + 'filer', + 'parler', + 'sortedm2m', + 'taggit', + + 'aldryn_bootstrap3', + + 'debug_toolbar', +) + +ALDRYN_BOILERPLATE_NAME = 'bootstrap3' + +THUMBNAIL_PROCESSORS = ( + 'easy_thumbnails.processors.colorspace', + 'easy_thumbnails.processors.autocrop', + # 'easy_thumbnails.processors.scale_and_crop', + 'filer.thumbnail_processors.scale_and_crop_with_subject_location', + 'easy_thumbnails.processors.filters', + 'easy_thumbnails.processors.background', ) LANGUAGES = ( @@ -216,7 +247,7 @@ CMS_LANGUAGES = { CMS_TEMPLATES = ( ## Customize this ('page.html', 'Page'), - ('feature.html', 'Page with Feature') + ('sub_section.html', 'Page with sub menu') ) CMS_PERMISSION = True diff --git a/zsite/templates/aldryn_people/includes/people_item.html b/zsite/templates/aldryn_people/includes/people_item.html new file mode 100644 index 0000000..b79924d --- /dev/null +++ b/zsite/templates/aldryn_people/includes/people_item.html @@ -0,0 +1,17 @@ +{% load aldryn_people_tags i18n thumbnail %} + +
+ {% if instance.show_links %}{% endif %}
+
+ {% if instance.show_links %}{% endif %}
+
+ {% if instance.show_links %}{% endif %}
+
+ {% if instance.show_links %}{% endif %}
+