模板与页面

大部分模板与页面的对应关系是固定的,部分模板与页面的关系可动态设置。

固定关系

  • 首页。访问地址:http://localhost:8080/,模板:/templates/1/default/index.html

  • 搜索页。访问地址:http://localhost:8080/search,模板:/templates/1/default/sys_search.html

  • 投票列表页。访问地址:http://localhost:8080/vote,模板:/templates/1/default/sys_vote.html

  • 登录页。访问地址:http://localhost:8080/login,模板:/templates/1/default/mem_login.html

  • 注册页。访问地址:http://localhost:8080/register,模板:/templates/1/default/mem_register.html

栏目、文章模板设置

不同栏目的栏目页和文章页,可以是不同模板,毕竟新闻栏目和产品栏目的页面肯定不一样。

在栏目管理处,可以设置栏目的 栏目模板文章模板

image.png

  • 栏目页。访问地址:http://localhost:8080/channel/{alias},模板:/templates/1/default/channel***.html

  • 文章页。访问地址:http://localhost:8080/article/{id},模板:/templates/1/default/article***.html

需要注意,栏目页模板必须以 channel 开头,文章页模板必须以 article 开头,否则不会在模板下拉框中显示。

2025-03-15 18:11
Last Updated: 2025-03-26
CONTENTS
0791-85271700
QQ咨询:1779755751
QQ交流群:626599871
微信咨询
微信扫码咨询
微信交流群
微信交流群
Powered by UJCMS © 2010-2025 All Rights Reserved
QQ咨询
电话
微信
微信扫码咨询