跳转到主要内容

Plone插件,用于vaporisation标签云

项目描述

简介

collective.vaporisation 插件为 Plone 用户提供了标签云组件。

标签云(或视觉设计中的加权列表)是对您网站中使用的关键词的视觉表示。标签通常是单个单词,通常按字母顺序列出,标签的重要性通过字体大小来显示。因此,可以按字母顺序和按流行程度找到标签。这些标签是超链接,可以链接到与关键字相关的内容集合。这个超链接使得 Plone 搜索显示带有选定关键字的标签的内容列表。

——来自维基百科的标签云定义 [点击查看]

MoNet MultimediaMO tagcloud

collective.portletpage 区域中使用的较大标签云

CCFE site tagcloud portlet

使用一些 CSS 规则可以自定义颜色

一个高级功能是“联合导航”,它允许用户进行相关和连续的搜索。在搜索过程中,组件的视图会有所不同。首先,它只显示搜索结果中的关键词。其次,它显示选定的标签,允许用户从搜索中删除一些标签。

用法

当你添加这种名为“标签云组件”的组件时,你将面对一个带有许多字段的编辑表单。

我们将详细了解它们的功能

显示名称

标签云的名称。用于显示目的。

不同尺寸的数量

此数字将确定最大尺寸。

要显示的关键词数量

此数字指示显示的关键词的最大数量。值 0(零)显示所有关键词。

云刷新超时

在云应该重新加载后的分钟数。这不是强制重新加载云的唯一参数。将此值设置为“0”以禁用缓存(不要在生产环境中这样做)。

起始路径

只有此目录下的对象将被考虑。如果为空(默认),组件将在整个网站上搜索。

要使用的索引

在此字段中,您可以选择要使用的索引。我们可以使用您网站上定义的所有 KeywordIndex。默认索引是 Plone 的“主题”索引。

内容类型

我们可以通过类型过滤对象。只有所选类型的对象将用于搜索关键词。

激活联合导航

如果启用此选项,组件将更改其视图以仅显示相关关键词。这将在搜索包含一些关键词的内容的功能中显示。

仅使用此列表中的关键词

这是一个手动选择要显示的关键词的白名单。从关键词列表中删除:这是一个黑名单,用于从显示中删除一些关键词。

要使用的模式

从提供的选项中选择一个使用模式。现在我们只有一个使用模式。其他模式可以通过外部包通过适配器实现。

排序关键词

如果激活,则关键词将按字母顺序排序。

待办事项和已知问题

  • 如果你使用多个标签云组件,你必须记住使用不同的名称。这样,“联合导航”将只应用于用户点击的关键词所在的组件。

  • 当过滤器更改时,编辑表单中使用的编辑表单中使用的关键词列表不会动态更改。要在更改用于过滤内容的一个字段(如“起始路径”,“要使用的索引”和“内容类型”)后使用白名单或黑名单,您需要保存组件并重新进入编辑。

    在加载编辑表单时,将重新创建词汇表。

依赖关系

测试于

  • Plone 3.3

  • Plone 4.0

  • Plone 4.1

  • Plone 4.2

致谢

在以下机构的支持下开发

它们都支持PloneGov 创新项目

作者

该产品由 RedTurtle 技术团队开发。

RedTurtle Technology Site

原始想法和代码来自 Souheil Shelfouh,他创建了vaporisation 产品。

更新日志

1.3.7 (2015-02-17)

  • 在 URL 中使用 appendViewAction。[sureshvv]

  • 在 Steamers 的 init 方法中,为自定义 steamer 类提供 base_query 和 search_path 属性,以便更容易地覆盖默认类。[thet]

  • 在端口设置中的类型选择中,使用来自 plone.app.vocabularies 的 reallyuserfriendlytypes,而不是使用自己的类型词汇表。自己的词汇表没有返回 metaTypesNotToList。[thet]

1.3.6 (2012-12-07)

  • 修复了从端口传递给搜索的 'portlet_path'。[mircoangelini]

  • 修复了将 'path' 过滤器组合到搜索功能中的问题。[mircoangelini]

1.3.5 (2012-12-07)

  • 修复了当某些 brains 的索引具有 'Missing.Value' 值时,云树重新加载的问题。[mircoangelini]

1.3.4 (2012-12-07)

  • 从端口传递给搜索的 'path' 参数现在是位于端口所在上下文的相对路径。[mircoangelini]

  • 在搜索函数中,'path' 和 'portal_type' 过滤器直接来自端口。端口使用通过 URL 传递的 'name' 和 'path' 来识别。[mircoangelini]

  • 修复了用于计算标签云端口中关键词权重的单个关键词对象的目录查询。[mircoangelini]

1.3.3 (2012-12-05)

  • fixed MANIFEST.in [mircoangelini]

1.3.2 (2012-12-04)

  • fix long_description in setup.py [mircoangelini]

  • removed handler js for batch buttons into cloud_search to deactivate ajax search functionality [mircoangelini]

1.3.1 (2012-08-22)

  • fixed the cloud search template to continue to use the “join navigation” [mircoangelini]

1.3.0 (2012-08-22)

  • changed the cloud search, into style Plone 4.2 [mircoangelini]

  • keep compatibility with old versions of Plone (3.3 and 4) [mircoangelini]

1.2.7 (2012-05-17)

  • moved reload of tags of a portlet from cache-key to the save button (#3) [mircoangelini]

  • conditioned the use of QUERY_STRING into _cloud_key only if the “join navigation” is enabled (#3) [mircoangelini]

1.2.6 (2012-02-20)

  • removed empty div ( ) into the footer of the portlet (#1) [mircoangelini]

  • added class “tags-list” to the div that contain the keyword into the portlet (#1) [mircoangelini]

  • fixed base url for search (#2) [mircoangelini]

  • added Brazilian-Portuguese translation [rafahela]

1.2.5 (2012-01-03)

  • updated cache method for portlet, added portal_url in params to reload the portlet in different domains [fdelia]

1.2.4 (2011-11-22)

  • Link to RSS feed from the search always root-site-based [keul]

  • Changed the required permission to Portlets: Manage portlets. This also fix Plone 4.1 compatibility [keul]

1.2.3 (2011-07-27)

  • SEO friend: cloud SERP page now add a propert meta tag [keul]

  • SEO friend: cloud link now use a proper rel value for stop search engines to try indexing cloud SERP pages [keul]

  • changed the default value for join navigation as it can be very expensive in some kind of sites. A simple search page is enough for most users [keul]

  • some XHTML Strict fixes in the SERP page [keul]

1.2.2 (2011-06-30)

  • now the cloud_search view is registered only for the site root. This was the same issue fixed in version 1.2, but a search engine have long memory and it could continue to kill the site cache [keul]

  • egg cleanup [keul]

  • fixed tests (even if they are only ZopeSkel defaults) [keul]

  • fixed egg dependency properly for Plone 4.1 [keul]

1.2.1 (2011-03-18)

  • fixed compatibility problem of cloud search results and Plone 4 [nan010]

1.2.0 (2011-02-24)

  • fix XHTML Strict bug when the current context has a non-prettified id [keul]

  • tagcloud id now is generated starting from the given title, not from the title of the current context (that was nonsense) [keul]

  • 搜索视图现在在端口上下文中调用,而不是实际上下文中。这曾是缓存杀手 [keul]

1.1.3 (2010-11-11)

  • 发布版本 [mircoangelini]

1.1.2 (2010-10-27)

  • 修复了权重计算中的Unicode错误 [mircoangelini]

1.1.1 (2010-10-12)

  • 现在可以在端口缓存中放置“0”(非常低效)[keul]

  • 修复了关键词的权重;现在即使同一个关键词在多个索引中使用,也不会对同一个对象计数多次 [mircoangelini]

  • 在缓存键中添加了新的参数:用户ID [mircoangelini]

1.1.0 (2010-10-05)

  • 为排序关键词添加了标志 [micecchi]

1.0.0 (2010-10-01)

  • 移动到集体SVN [mircoangelini]

项目详情


下载文件

下载适合您平台的文件。如果您不确定选择哪个,请了解有关安装包的更多信息。

源分布

collective.vaporisation-1.3.7.tar.gz (41.4 kB 查看散列)

上传时间

由以下支持