[英]Sonata SEO Bundle Site MAP
I am using sonata seo bundle and knp paginator bundle. 我正在使用奏鸣曲seo包和knp分页器包。 My Question is When I added new custom static url like :-(www.symfony.in/blog) in our KNP Menu.It's added successfully.
我的问题是,当我在KNP菜单中添加新的自定义静态网址时,如:-( www.symfony.in/blog),添加成功。 But When I run the :-
但是当我运行:-
php app/console sonata:seo:sitemap --scheme=http web www.symfony.in --env=prod
Command execute successfully But in sitemap Blog url(www.symfony.in/blog) not added. 命令执行成功,但未在站点地图中添加Blog url(www.symfony.in/blog)。
Any one know how to add custom url in Sonata SEO Bundle in Sitemap ? 有人知道如何在Sitemap的Sonata SEO Bundle中添加自定义网址吗?
I am google it but nothing found ! 我是google它,但未找到任何内容!
Thnaks! Thnaks!
You need to create a SitemapIterator in order to add your custom URLs to the Sitemap, as described in the documentation . 您需要创建一个SitemapIterator,以便将自定义网址添加到Sitemap中,如文档所述 。 This is an Iterator that you will have to declare as a service, and then reference into the
sonata_seo.sitemap.services
configuration. 这是一个迭代器,您必须将其声明为服务,然后引用到
sonata_seo.sitemap.services
配置中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.