跳转到主要内容

搜索引擎优化包

项目描述

简介

搜索引擎优化包

功能

使用collective.perseo,您可以管理多种SEO功能。

全局

应用于网站每个页面的配置,通过“PerSEO”工具在附加配置下进行
  • 网站管理员工具

  • 分别针对首页、单页、搜索页、未找到页、作者页、网站地图页、联系页、事件、文件、文件夹、图片、链接和新闻条目的标题、描述和关键词元标签
    • 首页

    • 单页

    • 搜索页

    • 未找到页

    • 作者页

    • 网站地图页

    • 联系页

    • 事件

    • 文件

    • 文件夹

    • 图片

    • 链接

    • 新闻条目

    • 主题

  • 分别针对登录和注册页面、管理页面(同时处理noodp、noydir、noarchive、nosnippet)禁用使用noindex和nofollow的资源索引
    • 搜索页

    • 登录和注册页面

    • 管理页面

    • 单页

    • 事件

    • 文件

    • 文件夹

    • 图片

    • 链接

    • 新闻条目

    • 主题

    • (也处理noodp、noydir、noarchive、nosnippet)

  • 包含在sitemap.xml.gz中的内容类型

  • 当网站地图更新时自动ping网站(Google、Bing、Ask)

  • 索引 RSS 源

  • 将 itemscope 和 itemtype 属性添加到 body 标签(如果您安装了 Schema.org 的扩展 collective.perseoschema)

逐个

通过网站每个内容的“SEO”选项卡(允许您更改特定内容的 SEO 设置)
  • 标签标题、描述和关键词元标签

  • 元机器人 Follow 标签(follow/nofollow)

  • 元机器人 Index 标签(index/noindex)

  • 元机器人高级标签(noodp, noydir, noarchive, nosnippet)

  • 规范 URL

  • 是否包含在 sitemap.xml.gz 中的内容(是/否)。

  • sitemap.xml.gz 中内容的优先级

  • itemtype 属性(如果您安装了 Schema.org 的扩展 collective.perseoschema)

SCHEMA.ORG

对于 Schema.org 属性,添加 collective.perseoschema 包。

警告!安装 collective.perseoschema 包,主模板和 plone.path_bar、plone.global_sections、plone.header 视图将进行定制,以插入 Schema.org 属性。这些资源在其他主题和皮肤中的定制可能会被禁用。

如果您不想安装 collective.perseoschema 包,但仍然需要 Schema.org 属性,以下是在您的主题中可以进行的定制。

在以下位置对 plone.path_bar 视图进行定制

  • path_bar.pt 的第 2 行,添加了 itemprop 属性,itemprop="breadcrumb”

    <div id="portal-breadcrumbs"
             itemprop="breadcrumb"
    ...

在以下位置对 plone.global_sections 视图进行定制

  • section.pt 的第 1 行,在标签 nav 中添加了 itemscope 和 itemtype 属性,itemtype="http://schema.org/SiteNavigationElement”

    <nav itemscope="itemscope"
             itemtype="http://schema.org/SiteNavigationElement">
             ...
    </nav>

在以下位置对 plone.header 视图进行定制

  • portal_header.pt 的第 2 行,添加了 itemscope 和 itemtype 属性,itemtype="http://schema.org/WPHeader”

    <div id="portal-header"
             itemscope="itemscope"
         itemtype="http://schema.org/WPHeader">
         ...

在以下位置对 sunburst_templates / main_template 进行定制

  • 第 18 行,从 Plone SEO 配置中获取“添加 itemscope 和 itemtype 属性到 body 标签”字段的值,并从 SEO 选项卡中获取“itemtype 属性”字段的值

    ...
    <html xmlns="http://www.w3.org/1999/xhtml"
        tal:define="
            ...
            perseo_context nocall: context/@@perseo-context;
                    itemscope_itemtype python:perseo_context.perseo_itemscope_itemtype();
                    itemtype python:perseo_context.perseo_itemtype()"
    ...
  • 第 61 行,添加了 itemscope 和 itemtype 属性(根据前面的值)

    ...
    <body ...
        tal:attributes="...
                        itemscope python:itemscope_itemtype and 'itemscope' or None;
                        itemtype python:itemscope_itemtype and itemtype or None">
    ...
  • 第 94 行,添加了 itemprop 属性,itemprop="mainContentOfPage”

    ...
    <div id="content" itemprop="mainContentOfPage">
    ...
  • 第 149 行,添加了 itemscope 和 itemtype 属性,itemtype="http://schema.org/WPSideBar”

    ...
    <div id="portal-column-one"
            itemscope="itemscope"
            itemtype="http://schema.org/WPSideBar"
    ...
  • 第 161 行,添加了 itemscope 和 itemtype 属性,itemtype="http://schema.org/WPSideBar”

    ...
    <div id="portal-column-two"
            itemscope="itemscope"
            itemtype="http://schema.org/WPSideBar"
    ...
  • 第 176 行,添加了 itemscope 和 itemtype 属性,itemtype="http://schema.org/WPFooter”

    ...
    <div itemscope="itemscope" itemtype="http://schema.org/WPFooter">
            <div tal:replace="structure provider:plone.portalfooter" />
    </div>

致谢

在 Andrea Pernici 的支持下开发。

collective.perseo 是基于 quintagroup.seoptimizer 的。

作者

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

RedTurtle Technology Site

变更日志

0.6.6 (2014-06-09)

  • 修复搜索表单模板中的错误 [amleczko]

0.6.5 (2013-12-10)

  • 修复 plone4 依赖项 [amleczko]

0.6.4 (2012-07-16)

  • 修复 sitemap 注册中的小错误 [amleczko]

  • 将图像添加到 sitemap 生成 [amleczko]

0.6.3 (2012-03-27)

  • 修复 perseo_itemtype 方法中的错误 [fdelia]

0.6.2 (2011-12-21)

  • 修复标签不匹配 [fdelia]

0.6.1 (2011-12-16)

  • 更新文档 [fdelia]

0.6.0 (2011-12-14)

  • 更改 SEO 图标 [fdelia]

  • 定制控制面板模板以创建嵌套字段集的布局 [fdelia]

  • 在控制面板模板中添加手风琴和适当的样式以嵌套字段集 [fdelia]

  • 修复控制面板和 SEO 选项卡中的字段布局 [fdelia]

  • 修复控制面板的描述和标题 [fdelia]

  • 修复控制面板中关键词字段的描述 [fdelia]

  • 修复控制面板中的描述 [fdelia]

0.5.0 (2011-10-19)

  • 将 Schema.org 定制移动到 collective.perseoschema 包 [fdelia]

  • 为“Plone SEO Control Panel Tool”安全添加 Plone4.1 兼容性 [fdelia]

0.4.1 (2011-09-28)

  • 修复更新事件中的错误 [fdelia]

0.4.0 (2011-09-27)

  • 更改导致 sitemap.xml 变更的对象的 sitemapxml 属性的处理方式,以便于ping [fdelia]

  • 修复属性覆盖错误 [fdelia]

0.3.0 (2011-08-05)

  • 定制一些视图模板以插入 itemscope、itemtype 和 itemprop 属性 [fdelia]

  • 定制主模板以插入 itemscope、itemtype 和 itemprop 属性 [fdelia]

  • 在Plone SEO控制面板工具中添加了一些字段 [fdelia]

  • 根据Plone SEO控制面板工具中的勾选,自定义rss模板以管理rss订阅的索引 [fdelia]

  • 添加了对导致sitemap.xml变化的对象上所有事件的处理,用于ping [fdelia]

  • 添加了对导致sitemap.xml变化的对象sitemapxml属性的处理,用于ping [fdelia]

  • 添加了sitemap.xml更新时的ping处理 [fdelia]

0.2.0 (2011-08-01)

  • 在Plone SEO控制面板工具中添加了一些字段 [fdelia]

  • 在SEO标签页中添加了一些字段 [fdelia]

  • 添加了在和门户页脚中渲染脚本的viewlets [fdelia]

  • 添加了对规范URL的验证 [fdelia]

  • 添加了ReallyUserFriendlyTypes词汇表 [fdelia]

  • 个性化生成sitemap.xml.gz的视图,计算应包含的内容类型 [fdelia]

  • 添加了getIncludedInSitemapxml元数据和自定义索引方法以访问此元数据 [fdelia]

  • 更新了sitemap.xml.gz生成视图,根据getIncludedInSitemapxml元数据计算每个对象是否应包含 [fdelia]

  • 添加了对优先级sitemap.xml.gz的验证 [fdelia]

  • 添加了getPrioritySitemapxml元数据和自定义索引方法以访问此元数据 [fdelia]

  • 更新了sitemap.xml.gz生成视图,根据getPrioritySitemapxml元数据计算每个对象的优先级 [fdelia]

  • 个性化主模板,为body标签添加itemscope和itemtype属性 [fdelia]

  • 将属性迁移到注解 [fdelia]

  • 添加了升级步骤以将现有属性迁移到注解 [fdelia]

  • 添加了对页面未找到的处理 [fdelia]

0.1.0 (2011-07-20)

  • 添加了Plone SEO控制面板工具 [fdelia]

  • 添加了在页面HTML头部插入元标签的viewlet [fdelia]

  • 添加了允许在上下文中计算HTML头部元标签的视图 [fdelia]

  • 添加了一些视图,允许根据上下文类型计算元标签 [fdelia]

  • 添加了一些方法,允许根据PloneSiteRoot上下文中的页面计算元标签 [fdelia]

  • 添加了自定义标题标签渲染的viewlet [fdelia]

  • 添加了规范URL链接渲染的viewlet [fdelia]

  • 添加了对来自Plone SEO控制面板工具的元标签中的变量%%title%%和%%tag%%的处理 [fdelia]

  • 添加了SEO标签页的对象动作和视图 [fdelia]

  • 添加了对SEO标签页设置中元标签的处理 [fdelia]

项目详情


下载文件

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

源代码分发

collective.perseo-0.6.6.zip (64.6 kB 查看哈希值)

上传时间 源代码

支持

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误记录 StatusPage StatusPage 状态页面