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 button when not using mezzanine #332

Closed
PhilipGarnero opened this issue Jul 1, 2015 · 2 comments
Closed

Preview button when not using mezzanine #332

PhilipGarnero opened this issue Jul 1, 2015 · 2 comments

Comments

@PhilipGarnero
Copy link

It would be great to have a preview button in the admin when using widgy's page builder without mezzanine.

See #331 for this setup

@gavinwahl
Copy link
Member

Hi Philip,

You can use the get_action_links method on your owner (briefly mentioned here http://docs.wid.gy/en/latest/design/owners.html) to add buttons to the widgy editor. It's not possible to have a generic preview button, because you have to provide the view to do previewing.

@PhilipGarnero
Copy link
Author

Oh great ! Thank you !
You should maybe add this somewhere more obvious in the docs and detail it a bit.
I had to look the code to find out get_action_links should return a list of dictionaries representing buttons.
I think widgy's huge area of improvement is the doc.
You could try to make it more user friendly =)

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