J5_06关于我们联系我们内容页

weeya2年前JTBC教程671

1、头尾模板调用代码
{$=$take('global.communal.header')}
{$=$take('global.communal.footer')}

{$title}标题
{$=$htmlEncode(#content, 0)}关于我们内容
{$=$take('index.title', 'lng')}模块名称

调用关于我们文章列表
{$=$render('universal:render.li-detail', $fetch(['genre' => '{$>this.genre}', 'limit' => 10]))}
公共管理,render.jtbc节点代码:<li data-id="{$id}"><a href="?type=detail&amp;id={$id}">{$title}</a></li>

关于我们多语言默认打开id1问题
找到public function index节点
1、$result = null;下面增加一行,44行
$lang = intval($this -> getParam('lang'));
2、$model -> where -> published = 1;下面增加一行,47行
$model -> where -> lang = $lang;
保存,问题解决

{$=$render('global.render.aboutus-honor-list', $fetch(['genre' => 'honor', 'limit' => 6]))}
调用荣誉资质列表


联系我们模块名{$=$take('index.title', 'lng')}
联系我们内容{$=$htmlEncode(#content, 0)}

相关文章

J5增加PDF附件下载功能

1、模块管理增加att字段,选择29附件管理器2、模板代码<table class="table table-striped m-0"><tbody><...

J5_07核心团队合作伙伴

核心团队team/荣誉资质honor,有列表页,有内容页{@}<a href="./?type=detail&amp;id={$id}" class="id...

J5_03首页模板

1、头尾模板调用代码{$=$take('global.communal.header')}{$=$take('global.communal.footer')}2、调用...

J5列表中获取当前分类的父分类ID

以新闻模块为例子。打开/news/common/diplomat/index.php找到public function list(Request $req, Response $res)函数修改以下内...

J5_05产品新闻详情页

1、头尾模板调用代码{$=$take('global.communal.header')}{$=$take('global.communal.footer')}{$ti...

J5_08留言模块

联系我们模块放留言板1、/Public/contactus/common/diplomat.index.php文件      $renderer =...

发表评论    

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。