Skip to content
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

Preview within menu #56

Open
merijnponzo opened this issue Nov 9, 2021 · 3 comments
Open

Preview within menu #56

merijnponzo opened this issue Nov 9, 2021 · 3 comments

Comments

@merijnponzo
Copy link

Hallo,

I already added a preview block like https://palmiak.github.io/timber-acf-wp-blocks/#/previews
But it's not showing in my block navigation 'preview'

Screenshot 2021-11-09 at 16 56 25

@merijnponzo
Copy link
Author

Okey i found out that i have to use 'example' to show the preview :-)

Example: { "titel": "Testimonials", "label": "John Doe", "breedte": "50%", "samenvatting":"Lorem ipsum buro ponzo", "afbeelding": {"sizes":{"medium":"https://static.dezeen.com/uploads/2019/06/Universal-Design-Studio_dezeen_hero1.jpg"}} }

Would be great I i could indent my json string because a one liner is a bit hard to read

@merijnponzo
Copy link
Author

Is it possible to add the same 'Example' data when i insert a new block in my post of page content?

Example within the menu:
Screenshot 2021-11-10 at 11 23 49

And I would like to have the preview of the block with Mode=Preview the same example data
Screenshot 2021-11-10 at 11 24 00

@Langmans
Copy link

Hello Merijn/ Palmiak,

I'm also using this plugin and use ACF Blocks in edit mode everywhere - I don't really want to render the block in the editor, it's too much work to style it both on the frontend and backend.

It would be perfect to just add an automatic preview image, say, in <theme_folder>/static/block-previews/<block_name>.png/jpg where block_name is the filename without the .twig extension.

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

No branches or pull requests

2 participants