fusionbox / django-widgy

A CMS framework for Django built on a heterogenous tree editor.
http://wid.gy
Other
332 stars 52 forks source link

Preview button when not using mezzanine #332

Closed PhilipGarnero closed 9 years ago

PhilipGarnero commented 9 years ago

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 commented 9 years ago

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 commented 9 years ago

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 =)