zencart后台定义meta_tags.php文件内容

2012 年 06 月 16 日  |  上午 10:08分类:Zen-Cart二次开发  |  标签:  |  949 views

zen-cart后台定义meta_tags.php文件内容
执行以下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’, ‘Your Home Page Title’, ‘set the home page title’, 1,210, NOW(), NOW(), NULL, NULL),

(NULL, ‘Homepage Keywords’, ‘HOME_PAGE_META_KEYWORDS’, ‘Your Home Page Keywords’, ‘set the home page keywords’, 1,211, NOW(), NOW(), NULL, NULL),

(NULL, ‘Homepage Description’, ‘HOME_PAGE_META_DESCRIPTION’, ‘Your Home Page Description’, ‘set the home page description’, 1,212, NOW(), NOW(), NULL, NULL),

(NULL, ‘Site Tagline’, ‘SITE_TAGLINE’, ‘Your Site Tagline’, ‘set the site tagline’, 1,213, NOW(), NOW(), NULL, NULL),

(NULL, ‘Custom Keywords’, ‘CUSTOM_KEYWORDS’, ‘Your Custom Keywords’, ‘set the home custom keywords’, 1,214, NOW(), NOW(), NULL, NULL);

接着对应修改includes/languages/english/meta_tags.php的内容:

// Site Tagline

define(‘SITE_TAGLINE’, SITE_TAGLINE);

// Custom Keywords

define(‘CUSTOM_KEYWORDS’, CUSTOM_KEYWORDS);

// Home Page Only:

define(‘HOME_PAGE_META_DESCRIPTION’, HOME_PAGE_META_DESCRIPTION);

define(‘HOME_PAGE_META_KEYWORDS’, HOME_PAGE_META_KEYWORDS);

// 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

这样就可以随时在zen-cart后台修改这些了,不用去文件里改,避免了出错。


发表您的评论

您必须 登录 才能发表评论。