Extending table columns in collection view in Plone 4

后端 未结 2 1379
青春惊慌失措
青春惊慌失措 2021-01-29 07:00

Collections provide an option to select columns to be display within the table view of collection.

We are extending most content-types with two fields using archetypes.

相关标签:
2条回答
  • 2021-01-29 07:34

    In the control panel -> collections ( typically /portal_atct/atct_manageTopicIndex) you can define every metadata you need. Collections depends on portal_catalog metadata and indexes, so you've to add your custom fields there. Use GenericSetup in your module profile to tell ZCatalog to create the new indexes, or create them by hand. In the former case, beware that reinstalling the module could wipe out the new created indexes ( http://maurits.vanrees.org/weblog/archive/2009/12/catalog ).

    0 讨论(0)
  • 2021-01-29 07:51

    You might want to take a look at collective.formcriteria. I haven't polished it nearly enough and installing it can get you in some uninstall trouble so don't install it without first backing everything up. That said, it gives you more than enough rope to do what you want using column expressions. Of course this is also more than enough rope to hang yourself with.

    0 讨论(0)
提交回复
热议问题