Skip to content

New page preview block#155

Merged
corysutyak merged 1 commit intomasterfrom
page-preview
Apr 11, 2019
Merged

New page preview block#155
corysutyak merged 1 commit intomasterfrom
page-preview

Conversation

@vsalvino
Copy link
Contributor

A page preview functions similar to the "latest pages" block, but is limited to one single page. Adding templates for: a basic page preview (default), bootstrap card style, and a form template that renders a form page as an inline form.

This also got me thinking about the different between content_blocks and html_blocks. I believe the definitions should be:

  • Content blocks: contain sub-blocks / sub-streamfields and could potentially have recursion errors.
  • HTML blocks: slightly more atomic blocks that do not have dynamic streamfields and would never cause recurion - they are safe to put inside of any streamfield.

That being said, I moved the PageListBlock and the new PagePreviewBlock into html_blocks as they are simply page choosers. This also enables them to be used inside of modals, carousels, etc. which is beneficial for the purpose of putting a form preview in a modal.

Also making sure all card templates render images in the same ratio/resolution for consistency.

@vsalvino vsalvino added this to the 0.14.0 milestone Apr 10, 2019
@vsalvino vsalvino requested a review from corysutyak April 11, 2019 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants