screen shotI can see the place where I can add meta title but unable to see any meta description column.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
You can debug the ProductPageController
there you can see how metaDescription being set. In Hybris OOTB(I'm referring 6.7), meta description being set using product description. So you need to check the same in your codebase. If you haven't customized that part so far then tries setting product description and check.
ProductPageController
final String metaKeywords = MetaSanitizerUtil.sanitizeKeywords(productData.getKeywords());
final String metaDescription = MetaSanitizerUtil.sanitizeDescription(productData.getDescription());
setUpMetaData(model, metaKeywords, metaDescription);
AbstractPageController
protected void setUpMetaData(final Model model, final String metaKeywords, final String metaDescription)
{
final List<MetaElementData> metadata = new LinkedList<>();
metadata.add(createMetaElement("keywords", metaKeywords));
metadata.add(createMetaElement("description", metaDescription));
model.addAttribute("metatags", metadata);
}