How to extend filebroser_safe with additional fields like "Default alt text"

27 views
Skip to first unread message

Chris Hoffmann

unread,
Jun 11, 2013, 11:24:27 AM6/11/13
to mezzani...@googlegroups.com
Hello,
what would be a good way to extend filebrowser_safe? 
At the moment I need two additional fields, which should be saved together with an image:
  • Default alt text
  • license information
This information should be displayed whenever an image is selected for a blog entry, on a mezzanine page or in own Displayable-Apps. 

Is there a quick way to do this in mezzanine?

In other projects I've used the django-filer which allows additional information like "Description", "Default alt text" and "Default caption".

Thanks a lot
Chris

 


Stephen McDonald

unread,
Jun 11, 2013, 3:31:36 PM6/11/13
to mezzani...@googlegroups.com
Consider a database model with each instance representing a file - the model's fields will include the file itself, and then any other fields you'd like to add.

There are examples of this in the both mezzanine.galleries app and Cartridge's product images.

Chris

 


--
You received this message because you are subscribed to the Google Groups "Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-use...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Stephen McDonald
http://jupo.org

Chris Hoffmann

unread,
Jun 13, 2013, 8:01:11 AM6/13/13
to mezzani...@googlegroups.com, st...@jupo.org
Thanks for your reply. 
Reply all
Reply to author
Forward
0 new messages