【发布时间】:2017-01-31 09:45:01
【问题描述】:
我正在使用 Couch CMS,并且我将标题背景设置为可编辑区域,然后当我从管理页面更改图像时,新图像仅出现在主页中,尽管在其他页面中我使用它
<?php echo file_get_contents("header.php"); ?>
index.php 中的代码:
<?php require_once('admin/cms.php'); ?>
<cms:template title = 'English Home Page'>
<cms:editable name='header' type='image' />
</cms:template>
<?php echo file_get_contents("header.php"); ?>
<?php COUCH::invoke(); ?>
header.php 中的代码
<?php require_once( 'admin/cms.php' ); ?>
.site-header {
background-image: url("<cms:show header />");
background-repeat: no-repeat;
background-position: center;
background-attachment: notdefined;
background-clip: padding-box;
background-size: cover;
background-origin: padding-box;
}
<?php COUCH::invoke(); ?>
为什么当我在除索引之外的其他页面中获取标题页面内容时,图像没有改变??
【问题讨论】:
标签: php css content-management-system