exadium/sitemap

此包最新版本(dev-master)没有可用的许可信息。

轻松为您的整个网站或网站的某些部分创建用户友好的网站地图。当用户创建了一个包含多个子页面的页面,并希望父页面显示可用的子页面时,非常适合您的用户。

安装: 26

依赖项: 0

建议者: 0

安全: 0

星星: 1

关注者: 2

分支: 2

开放问题: 1

类型:silverstripe-module

dev-master 2020-03-27 11:29 UTC

This package is not auto-updated.

Last update: 2024-09-28 14:17:31 UTC


README

#################################################### 网站地图模块 ####################################################

描述

轻松为您的整个网站或网站的某些部分创建用户友好的网站地图。当用户创建了一个包含多个子页面的页面,并希望父页面显示可用的子页面时,非常适合您的用户。下载源代码

It lets a user easily create a sitemap for the whole website.
In a hierarchical website users often organise pages using subpages. They often do not include any information in the parent page, or fail to maintain the parent page properly. The sitemap module allows a user to quickly add a sitemap to such a parent page. The sitemap will be automatically updated with the information from the child pages.

与Google Sitemaps的不同之处

使用网站地图模块生成的网站地图是为您的网站访客和搜索引擎准备的。功能

Allows a sitemap to be create for any page in the website.
Create a sitemap for a different section of the website (you can set the parent page to any site page).
Set a maximum depth for the sitemap.
User can select which page attributes to include.
Allows for specification of separate stylesheet.
Easy extend module with your own page attributes.

维护者联系方式

Marijn Kampf <marijn (at) exadium (dot) com>

赞助商

Exadium Web Development and Online Marketing。更多信息请访问http://www.exadium.com

安装

将“sitemap”文件夹中的文件复制到SilverStripe安装的根目录。网站地图将自动添加到Page类中。

您需要做的就是将$ShowSitemap包含到您的模板中。(对于初学者,将$ShowSitemap添加到themes/yourtheme/templates/Layout/Page.ss)或者将短代码[Sitemap]包含到您的内容中。待办事项:通过短代码启用设置更改,当前使用包含网站地图的页面的设置。

扩展

如果您想向网站地图条目的模板中添加特定数据,此模块可以扩展。

扩展Sitemap类,并使用特定于您需求的数据扩展prepareTemplateData()函数。

要求

SilverStripe 3.1