【问题标题】:CAn we use search for value added in plone form gen using DataContentAdapter我们可以使用 DataContentAdapter 在 plone form gen 中搜索添加的值
【发布时间】:2012-06-28 18:40:14
【问题描述】:

我在 Plone 4.1 中使用 PloneFormGen 创建了一个表单。我已经使用 DataContentAdapter 来触发数据的工作流。如何使用 Plone 的默认 LiveSearch 搜索通过此表单提交的值?

【问题讨论】:

  • 个人好奇,但你的第一语言是什么?
  • 不不,一点也不。只是我注意到你使用了“我们”。我在这个网站上多次看到相同的用法,我只是好奇。英语非常好。
  • d2c 应该添加一个功能,以便能够通过“SearchableText”索引器将字段设置为可索引。我认为这完全符合您的用例。

标签: python plone


【解决方案1】:

您必须为它们编制索引。这个帖子很有帮助:

http://plone.293351.n2.nabble.com/Can-you-add-a-field-introduced-by-schemaextender-as-a-catalog-column-td3937077.html

基本上,您可以使用http://pypi.python.org/pypi/plone.indexer 来索引由schemaextender(DataContentAdapter 使用,来自http://pypi.python.org/pypi/uwosh.pfg.d2c)生成的字段

【讨论】:

    猜你喜欢
    • 2012-04-21
    • 1970-01-01
    • 2012-09-16
    • 1970-01-01
    • 2020-09-23
    • 1970-01-01
    • 2011-06-28
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多