由于 CMS 使用的是动态数据模型,因此默认情况下模板的调用和数据是要匹配的。
目前首页的模块相对固定,如果需要修改首页的内容可以直接修改以下的文件:
- 首页
module/Cms/View/pc/cms/index.blade.php - 默认列表
module/Cms/View/pc/cms/list/default.blade.php - 文章详情
module/Cms/View/pc/cms/detail/default.blade.php - 产品列表
module/Cms/View/pc/cms/list/product.blade.php - 产品详情
module/Cms/View/pc/cms/detail/product.blade.php - 新闻列表
module/Cms/View/pc/cms/list/news.blade.php - 新闻详情
module/Cms/View/pc/cms/detail/news.blade.php - 案例列表
module/Cms/View/pc/cms/list/case.blade.php - 案例详情
module/Cms/View/pc/cms/detail/case.blade.php - 招聘列表
module/Cms/View/pc/cms/list/job.blade.php - 招聘详情
module/Cms/View/pc/cms/detail/job.blade.php
如果使用的是其他的模板模块,如 CmsThemeXxx 则路径相应的变为以下:
- 首页
module/CmsThemeXxx/View/pc/cms/index.blade.php
在CMS系统中,动态数据模型要求模板与数据匹配。要修改首页内容,可直接编辑如index.blade.php等指定文件。对于不同模块如新闻、产品、案例、招聘,文件路径各有对应。若使用自定义主题,路径会相应改变,如CmsThemeXxx下的视图文件。
210

被折叠的 条评论
为什么被折叠?



