zencart配景自定義首頁title、keywords、description插件,zencart首頁title、keywords、description默認是不能在後盾管制的,這不方便别的人員操縱,上面的插件極爲容易,然而很适用;
1、後台—》工具—》安裝SQL劇本
執行如下SQL:
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function)
VALUES
(NULL, ‘Homepage title’, ‘HOME_PAGE_TITLE’, ‘你的網站問題title’, ‘set the home page title’, 1,210, NOW(), NOW(), NULL, NULL),
(NULL, ‘Homepage keywords’, ‘HOME_PAGE_META_KEYWORDS’, ‘你的關鍵詞 keywords’, ‘set the home page keywords’, 1,211, NOW(), NOW(), NULL, NULL),
(NULL, ‘Homepage description’, ‘HOME_PAGE_META_DESCRIPTION’, ‘l你的網站描畫 description’, ‘set the home page description’, 1,212, NOW(), NOW(), NULL, NULL);
2、批改includes\languages\english\meta_tags.php的内容:
// Home Page Only:
define(‘HOME_PAGE_META_DESCRIPTION’, HOME_PAGE_META_DESCRIPTION);
define(‘HOME_PAGE_META_KEYWORDS’, HOME_PAGE_META_KEYWORDS);
define(‘HOME_PAGE_TITLE’, HOME_PAGE_TITLE);
// NOTE: If HOME_PAGE_TITLE is left blank (default) then TITLE and SITE_TAGLINE will be used instead.
define(‘HOME_PAGE_TITLE’, HOME_PAGE_TITLE); // usually best left blank