导航:首页 > 万维百科 > 帝国cms栏目标题

帝国cms栏目标题

发布时间:2021-01-08 08:30:15

1、帝国cms列表页,内容页怎么自定义标题呢?

网站的title 如果在模板里面有定义的话,是可以在 后台 设置的
首页支持的变量:
[!--pagetitle--]:网站名称
[!--pagedes--]:页面描述
[!--pagekey--]:页面关键字

模板内写好变量后, 在后台 : 系统 -> 系统设置 -> 系统参数设置
网站名称 对应的就是 模板里的 [!--pagetitle--]

2、帝国cms灵动标签调用指定的栏目名称地址和5条新闻标题

你直接在帝国后台上点击自动生成标签,然后设置好,自动生成。拷贝那段代码。

[e:loop={2,10,1,0}]
<a href="<?=$bqsr['titleurl']?>" target="_blank"><?=$bqr['title']?></a> <br>
[/e:loop]

[e:loop={2,10,1,0}]这句就是循环的开始
<a href="<?=$bqsr['titleurl']?>" target="_blank"><?=$bqr['title']?></a> <br>
[/e:loop]这句就是循环的结束

然后你按照你的div+css看那里要循环。把这些替换就可以了

3、帝国cms如何在栏目列表中增加标题分类

好像是在系统模型里增加的

4、帝国cms首页的文章标题前面加上栏目名称和链接该怎么搞?

<?=$class_r[栏目ID]['classname']?> 调用栏目名称
<?=$class_r[1]['classpath']?>/ 调用栏目链接

5、帝国cms如何把搜索结果前面的显示的栏目别名改成栏目名 (因为内容模板里我调用了栏目别名来当标题)

把内容模板中的栏目调用那地方替换成这个
<a href="<?=sys_ReturnBqClassname($navinfor,9)?>/">[!--class.name--]</a>

6、栏目的title标题怎么更改.帝国cms

后台修改 栏目名 如果是静态的话 要重新生成静态

需要域名的话 可以搜索 西魁网络 cn域名15元 网站空间35元

7、帝国Cms怎么实现调用网站一级栏目和二级栏目做为网站导航

修改头文件,具体代码如下

<nav class="nav">
<ul class="nav__menu">
<li class="nav__menu-item"><a href="[!--news.url--]" target="_self">首页</a></li>
<?php
$ecms_bq_sql=sys_ReturnEcmsLoopBq('select classid,classname,classpath from [!db.pre!]enewsclass where bclassid=0 and showclass=0 order by myorder limit 8',20,24,0); $bqno=0;
while($bqr=$empire->fetch($ecms_bq_sql))
{
$bqsr=sys_ReturnEcmsLoopStext($bqr);
$bqno++;
if($bqr[classid] != '23' ){
?>

<li class="nav__menu-item"><a href="<?=$public_r[newsurl]?><?=$bqr[classpath]?>" title="<?=$bqr[classname]?>" target="_self" ><?=$bqr[classname]?></a>
<ul class="nav__submenu">
<?php
$ecms_bq_sql2=sys_ReturnEcmsLoopBq("select classid,classname,classpath from [!db.pre!]enewsclass where bclassid='$bqr[classid]' order by myorder limit 5",20,24,0);
$bqno2=0;
while($bqr2=$empire->fetch($ecms_bq_sql2))
{
$bqsr2=sys_ReturnEcmsLoopStext($bqr2);
$bqno2++;
?>
<li class="nav__submenu-item"><a href="<?=$public_r[newsurl]?><?=$bqr2[classpath]?>" title="<?=$bqr2[classname]?>" target="_self" ><?=$bqr2[classname]?></a></li>
<?php
}
?>
</ul>
</li>

<?php
}
}
?>
</ul>
</nav>

8、帝国cms首页多表调用,要调用栏目缩略图+标题。

本来不想回答 去年做过项目4表联合 拿去自己改吧 不会改就没办法 不解释

[e:loop={'select * 
from 
(
(select id,classid,istop,title,titleurl,titlepic,newstime from phome_ecms_news where istop=1 order by newstime desc limit 13 )
Union All
(select id,classid,istop,title,titleurl,titlepic,newstime from phome_ecms_news1 where istop=1 order by newstime desc limit 13)
Union All
(select id,classid,istop,title,titleurl,titlepic,newstime from phome_ecms_news2 where istop=1 order by newstime desc limit 13)
Union All
(select id,classid,istop,title,titleurl,titlepic,newstime from phome_ecms_news3 where istop=1 order by newstime desc limit 13)
)  as A  order by newstime desc  limit 20',0,24,0}]
<?php
$fb=$empire->fetch1("select * 
from 
(
(select id,classid,smalltext from phome_ecms_news_data_1 where id='$bqr[id]' and classid='$bqr[classid]')
Union All
(select id,classid,smalltext from phome_ecms_news1_data_1 where id='$bqr[id]' and classid='$bqr[classid]')
Union All
(select id,classid,smalltext from phome_ecms_news2_data_1 where id='$bqr[id]' and classid='$bqr[classid]')
Union All
(select id,classid,smalltext from phome_ecms_news3_data_1 where id='$bqr[id]' and classid='$bqr[classid]')
)  as A");
?>
<li class="clearfix">
<a target='_blank' href="<?=$bqr[titleurl]?>" title="<?=$bqr[title]?>" class="index-img"><img src="<?=$bqr[titlepic]?$bqr[titlepic]:'404.jpg'?>" alt="<?=$bqr[title]?>"></a>
<div class="index-text">
<h1><a target='_blank' href="<?=$bqr[titleurl]?>"><?=$bqr[title]?></a>
</h1>
<div class="index-con"></div>
<div class="index-intro"><a target="_blank" href="<?=$bqr[titleurl]?>?from=index_new_intro"><?=$fb[smalltext]?></a></div>
<div class="index-like clearfix">
<span class="time">
 <?php
$fr=$empire->fetch1("select * 
from 
(
(select id,classid,infotags from phome_ecms_news_data_1 where id='$bqr[id]' and classid='$bqr[classid]')
Union All
(select id,classid,infotags from phome_ecms_news1_data_1 where id='$bqr[id]' and classid='$bqr[classid]')
Union All
(select id,classid,infotags from phome_ecms_news2_data_1 where id='$bqr[id]' and classid='$bqr[classid]')
Union All
(select id,classid,infotags from phome_ecms_news3_data_1 where id='$bqr[id]' and classid='$bqr[classid]')
)  as A");
            $keyr=explode(',',$fr[infotags]);
            for($i=0;$i<2;$i++)
            {
            echo'<span><a href="/liaotian/tags-'.$keyr[$i].'-0.html" target=_blank>'.$keyr[$i].'</a></span>&nbsp;&nbsp;';
            }
            ?>
</span>
<span class="time"><?=format_datetime($bqr[newstime],"m-d")?></span>
<div class="post-ope">
<a href="/e/public/digg/?classid=<?=$bqr[classid]?>&id=<?=$bqr[id]?>&dotop=1&ajaxarea=diggnum<?=$bqr[id]?>" class="post-like-btn post-like" id="post-like-top-btn">
<script>
document.write('<script src="/e/public/ViewClick/?classid=<?=$bqr[classid]?>&id=<?=$bqr[id]?>&down=5?t='+Math.random()+'"><'+'/script>');
</script>
</a>
</div>
</div>
</div>
</li>

[/e:loop]

功能:联合取4表数据 关联取附表简介 并取标签 附加顶功能 动态浏览量等

9、帝国Cms怎么给栏目页和内容页添加标题

内容页:[!--pagetitle--]<-[!--class.name--]<-<a href="/">首页</a>
一级栏目页:[!--class.name--]<-<a href="/">首页</a>
二级栏目页:[!--class.name--]<-[!--bclass.name--]<-<a href="/">首页</a>
三级以上的栏目页需要修改代码了或自己写代码。

与帝国cms栏目标题相关的知识