Quantcast
Channel: Planet Plone - Where Developers And Integrators Write
Viewing all articles
Browse latest Browse all 3535

Josh Birdwell: How to use BlockDataGridFieldFactory

$
0
0
[There are embedded gist’s click link to see]
Help from espenmn & tkimnguyen
  1. Add collective.z3cform.datagridfield to the buildout.cfg | We are doing this to get the most recent code because if not then there will be importing errors
2. Import these following lines in my_content.py
from collective.z3cform.datagridfield import DataGridFieldFactory
from collective.z3cform.datagridfield import BlockDataGridFieldFactory
3. Create the schema for the table
4. Add it to the the form schema
5. Create a custom edit form

Tips:
  • Import Errors
    • Make sure the code is the most up to date
      • Check eggs
      • Update build as per step one



Viewing all articles
Browse latest Browse all 3535

Trending Articles