如何在Hybris Sitemap XML中更改localhost URL [英] How to change localhost URL in Hybris Sitemap XML

查看:88
本文介绍了如何在Hybris Sitemap XML中更改localhost URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试通过开箱即用的方式并在site.impex的开箱即用存储中复制给定的ImpEx来为我的Hybris网站创建sitemap.xml.

I am trying to create a sitemap.xml for my Hybris site by going out of the box way and copying the ImpEx given in out of the box store in my site.impex.

如何在Hybris Sitemap XML中更改本地主机URL?
运行cronjob后生成的sitemap.xml由多个标记组成,这些标记又包含不同站点地图页面类型的位置.在产品和类别中,大多数产品和类别都是可见的,但是这里的问题是它们以本地主机开头.在更高的环境中应该改变这种行为吗?如果是这样,该怎么做?

How to change localhost URL in Hybris Sitemap XML?
The sitemap.xml generated after running the cronjob consists of multiple tags, which in turn contain the location of the different sitemap page types. Here in product and categories, most of the products and categories are visible, but the issue here is that they begin with localhost. Should this behavior be changed in higher environments? If so, how to do this?

如何将自定义页面网址添加到hybris网站地图?
此外,在我们的页面中,我们有几个内容页面和一些自定义页面,这些页面在这里没有显示.如何在sitemap.xml中添加这些内容?

How to add custom page URL to hybris sitemap?
Besides, in our pages, we have several content pages and also some custom pages, which do not feature there. How to add these in sitemap.xml?

推荐答案

在更高的环境中是否应更改此行为? 这样吗?

Should this behaviour be changed in higher environments?If so, how to do this?

是的,您可以根据环境在local.properties文件中配置以下属性

Yes, you can configure below properties in your local.properties file according to your environments

website.mysite.http=http://www.yourDomain.com
website.mysite.https=https://www.yourDomain.com
media.mysite.http=http://www.yourDomain.com
media.mysite.https=https://www.yourDomain.com

在这里,用您的CMSSite ID替换mysite.
这些属性由getWebsiteUrlForSite&内部使用. DefaultSiteBaseUrlResolutionService

here, replace mysite with your CMSSite id.
These properties internally used by getWebsiteUrlForSite & getMediaUrlForSite method of the DefaultSiteBaseUrlResolutionService

此外,在我们的页面中,我们有几个内容页面,还有一些 自定义页面,此处不提供.如何在其中添加这些页面 sitemap.xml?

Besides,in our pages,we have several content pages and also some custom pages,which do not feature there.How to add these in sitemap.xml?

转到HMC/backOffice> WCMS>网站>选择您的网站>右键单击 站点地图配置>在新标签中打开.

Go to HMC/backOffice > WCMS > WebSite > select your website > Right click on Site Map Configuration > Open in new tab.

在这里,您可以在SiteMapConfig中添加自定义URL并将自定义"添加为站点地图类型" 喜欢

Here, you can add custom URL in your SiteMapConfig and add Custom as Site Map Type Like

站点地图类型:自定义,内部调用CustomPageSiteMapGenerator会获取上面配置的自定义网址列表

Site map type:Custom internally call CustomPageSiteMapGenerator which fetch the above configured custom URLs list

这篇关于如何在Hybris Sitemap XML中更改localhost URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆