简体   繁体   English

Drupal 8 站点地图

[英]Drupal 8 sitemap

Which are the possible way to get an XML sitemap in drupal 8 for image and video?在 drupal 8 中获取图像和视频的 XML 站点地图的可能方法有哪些?

these are the module which i have tried这些是我试过的模块

  1. Simple XML sitemap:- this is the format for the sitemap XML https://support.google.com/webmasters/answer/178636?hl=en instead i get the format like简单的 XML 站点地图:- 这是站点地图 XML 的格式https://support.google.com/webmasters/answer/178636?hl=en相反,我得到的格式如下它显示错误的标签并显示在媒体包页面中,但我需要获取使用图像或视频的页面 it is showing wrong tag and is showing in media bundle page but i need to get the page where the image or video is used.它显示错误的标签并显示在媒体包页面中,但我需要获取使用图像或视频的页面。

Version 2.10 and above of Simple XML sitemap supports indexing of images entities. Simple XML 站点地图 2.10 及以上版本支持图像实体的索引。 Don't forget to run /update.php after upgrading.不要忘记在升级后运行 /update.php。 After doing so, there will be a new setting 'include images' on entity type/bundle settings as well as on entity edit pages.这样做之后,实体类型/捆绑设置以及实体编辑页面上将有一个新设置“包含图像”。

See this blog post for details.有关详细信息,请参阅此博客文章

Regarding videos, I think using hook_simple_sitemap_arbitrary_links_alter(&$arbitrary_links) would not be enough, as the output of the XML would have to be changed to add the 'video' element.关于视频,我认为使用hook_simple_sitemap_arbitrary_links_alter(&$arbitrary_links)是不够的,因为必须更改 XML 的输出以添加“视频”元素。 The plan is to make generating of XML more pluggable and extensible in 2.11.计划是在 2.11 中使 XML 的生成更具可插入性和可扩展性。 Feel free to help out .随时提供帮助

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM