从受限词汇中标记和搜索克隆内容
我想让我的编辑在几个正交词汇表上标记内容,然后有一个很好的搜索界面,让用户可以根据这些词汇表搜索内容。 解决方案的一部分似乎也存在
- ATVocabularyManager - 让编辑者创建不同的词汇
- eea.facetednavigation - 让编辑者将 ATVocabularyManger 词汇连接到搜索面板
缺少将新字段添加到某些内容类型的分类选项卡并拥有这些的方法受词汇量限制。并对这些值进行存储和索引,以便可以搜索它们。
我知道我可以在代码中做到这一点,但我希望有一些 TTW 的东西,以便编辑者可以添加更多的方式来分类,如果他们愿意的话。我很确定肯定已经有一个插件可以解决这个问题,但到目前为止还没有找到。 我很确定灵巧模式编辑器可以解决这个问题,但我需要它来处理现有的 Plone 内容类型。
所以想知道
I want to let my editors tag content on several orthogonal vocabularies and then have a nice search interface that lets users search for the content based on those vocabularies.
It seems too parts of the solution exist
- ATVocabularyManager - lets editors create different vocabularies
- eea.facetednavigation - lets editors connect up ATVocabularyManger vocabs to a search panel
What is missing a way to add a new fields to the catagorisation tab of certain content types and have these constrained by the vocabularies. and have these values stored and indexed so they can be searched.
I know I can do this in code, but I'm hoping for something TTW so editors can add more ways to categorise if they want to. I'm pretty sure there must be a plugin out there to solve this already, but so far haven't found it.
I'm pretty sure dexterity schema editor would solve this problem but I need this for the existing Plone content types.
So wondering
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我认为您可以做的就是让您的内容编辑器使用常规标记机制标记内容并按他们喜欢的方式放置。然后,使用 eea.facetednavigation,指定您想要作为分面导航一部分的不同标签组。
如果您的内容编辑器需要更多结构来添加标签,我建议您制作一个自定义小部件,为他们提供一组结构化的标签可供选择。
您可能需要查看一些用于解决此问题的软件包:
ATVocabularyManager 不是用于将词汇表动态添加到现有内容类型的新字段,而是用于为自定义内容类型以及可能的 schemaextender 字段提供词汇表管理器。
What I think you can do is just have your content editors tag the content with the regular tagging mechanism and put it what they like. Then, with eea.facetednavigation, you specify the different groups of tags that you want part of your faceted navigation.
If you require more structure for your content editors to add the tags, I would suggest perhaps making a custom widget that gives them a structured set of tags to choose from.
Some packages you may want to have a look at for solving this problem are:
ATVocabularyManager isn't for dynamically adding vocabularies to new fields on existing content types, it's for providing a vocabulary manager for custom content types and perhaps schemaextender fields.
这是我打算构建来解决这个问题的,因为到目前为止建议的解决方案都没有解决整个问题。
让我们称之为collective.tagvocabularies(?)
它的目的是允许通过现有的Tags元数据字段将多个不同类别的关键字输入到现有的Plone内容中,然后能够使用像FacetedNavigation这样的插件来显示内容,就好像内容是按多个不同方面进行分类。它将根据 Plone 中关键字索引的唯一值动态提供许多不同的词汇表来实现此目的。
它将提供一个控制面板,您可以在其中输入正则表达式。此 re 将用于所有内容中使用的所有关键字,以将其分解为多个方面。例如,如果您所有的标签都是“动物-鱼”、“颜色-蓝色”形式,那么您的标签
一旦安装,“颜色”和“动物”的词汇就可以在任何地方使用,包括 eea.facetednavigation。添加到内容中的任何新标签都将自动在词汇表中变得可用(可能需要缓存)。
Here is what I intend to build to solve this problem since none of the suggested solutions so far solve the whole problem.
Let's call it collective.tagvocabularies (?)
It's aim will be to allow multiple different categories of keywords to be entered into existing Plone content via the existing Tags metadata field and then be able to use plugins like FacetedNavigation to display content as if the content was categorized by multiple different facets. It will do this by dynamically providing many different Vocabularies based on the unique values of the Keywords index in Plone.
It will provide a control panel where you can enter a regular expression. This re will be used on all keywords used on all content to break it into facets. For example if all your tags are of the form Animal-Fish, Colour-Blue your re would be
Once installed Vocabularies for "Colour" and "Animal" are available to be used anywhere including eea.facetednavigation. Any new tag added to content will automatically become available in the vocabularies (caching might be needed).