镖师 发表于 2025-6-24 08:08:20

discuz的专题页面模板,不显示网站logo、登陆口、导航?但header.htm中的其他内容都显示。是默认就这样的吗? New

<!--{template common/header}--><div id="pt" class="bm cl">      <div class="z">                <a href="./" class="nvhm" title="{lang homepage}">$_G</a> <em>›</em> $topic      </div></div><link id="style_css" rel="stylesheet" type="text/css" href="{STATICURL}topic/t1/style.css?{VERHASH}"><style id="diy_style" type="text/css"></style><div id="widgets"></div><div class="wp"><!----><div id="diypage" class="area">      <div id="frame1" class="frame move-span frame-1 cl">                <div class="frame-title title" id="frame1"><span class="titletext">{lang frame}</span></div>                <div id="frame1_left" class="column frame-1-c"></div>      </div></div><!----><!--{if $topic['allowcomment']==1}-->      {eval                $data = &$topic;                $common_url = "portal.php?mod=comment&id=$topicid&idtype=topicid";                $form_url = "portal.php?mod=portalcp&ac=comment";                $commentlist = portaltopicgetcomment($topicid);      }      <!--{template portal/portal_comment}--><!--{/if}--></div><script src="misc.php?mod=diyhelp&action=get&type=topic&diy=yes&topicid=$topicid&r={echo random(4)}" type="text/javascript"></script><!--{template common/footer}-->
我使用的是默认专题模板测试的(上面贴的模板代码),新建一个专题发现header.htm中网站logo、登陆口、导航,以及footer.htm中的全部内容,在专题模板中都没显示。



查看源代码,只是调用了header.htm中的js和css等内容,其他内容一概没显示,footer.htm内容更是一个字都没有。

官方默认就故意这样设计的吗?还是我哪里没搞对
我知道答案 回答被采纳将会获得1 贡献 已有1人回答

IT618发布 发表于 2025-6-24 08:09:15

创建专题的时候有选择是否显示头尾的
页: [1]
查看完整版本: discuz的专题页面模板,不显示网站logo、登陆口、导航?但header.htm中的其他内容都显示。是默认就这样的吗? New