-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New template blocks - page preview block template #308
Comments
You will need to copy the entire contents of For this reason, I would also recommend making your custom templates under coderedcms/coderedcms/settings.py Lines 128 to 159 in c2373f8
|
Thank you for your help, I didn't do it correctly. Now everything works correct CODERED_FRONTEND_TEMPLATES_BLOCKS = {
'cardblock': (
('coderedcms/blocks/card_block.html', 'Card'),
('coderedcms/blocks/card_head.html', 'Card with header'),
('coderedcms/blocks/card_foot.html', 'Card with footer'),
('coderedcms/blocks/card_head_foot.html', 'Card with header and footer'),
('coderedcms/blocks/card_blurb.html', 'Blurb - rounded image and no border'),
('coderedcms/blocks/card_img.html', 'Cover image - use image as background'),
),
'cardgridblock': (
('coderedcms/blocks/cardgrid_group.html', 'Card group - attached cards of equal size'),
('coderedcms/blocks/cardgrid_deck.html', 'Card deck - separate cards of equal size'),
('coderedcms/blocks/cardgrid_columns.html', 'Card masonry - fluid brick pattern'),
),
'pagelistblock': (
('coderedcms/blocks/pagelist_block.html', 'General, simple list'),
('coderedcms/blocks/pagelist_list_group.html', 'General, list group navigation panel'),
('coderedcms/blocks/pagelist_article_media.html', 'Article, media format'),
('coderedcms/blocks/pagelist_article_card_group.html',
'Article, card group - attached cards of equal size'),
('coderedcms/blocks/pagelist_article_card_deck.html',
'Article, card deck - separate cards of equal size'),
('coderedcms/blocks/pagelist_article_card_columns.html',
'Article, card masonry - fluid brick pattern'),
),
'pagepreviewblock': (
('coderedcms/blocks/pagepreview_card.html', 'Card'),
('coderedcms/blocks/pagepreview_form.html', 'Form inputs'),
('coderedcms/blocks/pagepreview_media_list.html', 'Media list'), #--> New template
),
'*': (
('', 'Default'),
),
} |
Hi,
I'm trying to add a new template to page preview block template. I suggested this entry
page preview block template
file base.py
Unfortunately, all templates in the admin disappear.
Thank you for your help
#Be healthy!
The text was updated successfully, but these errors were encountered: