meta-title

How can I change the <title> tag dynamically in php based on the URL values

杀马特。学长 韩版系。学妹 提交于 2019-12-10 10:52:51
问题 I want the title page to be changed so that a crawler can see it. The URL is of the format: public.sample.com/account/Disney I load a standard, global header include file using require() That's where the current default tags are defined. IF the URL is public.sample.com/account/Disney, I would like the tag to read, instead: This is an account profile for Disney I believe something would need to be written in this global header file, but not sure what. Thanks. 回答1: Super simple example to get

How can I change the <title> tag dynamically in php based on the URL values

陌路散爱 提交于 2019-12-06 04:27:25
I want the title page to be changed so that a crawler can see it. The URL is of the format: public.sample.com/account/Disney I load a standard, global header include file using require() That's where the current default tags are defined. IF the URL is public.sample.com/account/Disney, I would like the tag to read, instead: This is an account profile for Disney I believe something would need to be written in this global header file, but not sure what. Thanks. Super simple example to get you started. <title><?php if ( preg_match('/([^\/]+)\/([^\/]+)$/', $_SERVER['PHP_SELF'], $matches) ) { list(

How to add meta description in hybris?

泄露秘密 提交于 2019-12-02 11:14:25
问题 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