深喉咙SHLCMS模板标签首页调用说明

用过SHLCMS的人都知道,该CMS系统是最适合企业建站的一套CMS系统。简单易用、方便入手,其使用的MVC三层架构模式更是让开发人员快速进入开发模式。毫不夸张的说,稍有开发经验的初级程序员只要认真的看一遍官方提供的视频教程即可快速进入开发状态。这也是该系统短短几年为何可以发展壮大的一个重要原因之一吧。近期的版本更是加入了焦点轮换广告功能,让企业展示的flash动画幻灯更加方便,站长们不用再去苦思悯想的去找效果,直接一个标签即可搞定,后台还提供超过20种的幻灯显示模式。
下面:

网站标题SEO组合标签:
$tag[‘seo.title’] 本标签为综合SEO标签,由{$tag[‘title’].’ – ‘.$tag[‘channel.title’].’ – ‘.$tag[‘site.title’]}标签组合而成。
$tag[‘seo.keywords’] 本标签为综合SEO关键字标签,由{$tag[‘keywords’].’ – ‘.$tag[‘channel.keywords’].’ – ‘.$tag[‘site.keywords’]}标签组合而成。
$tag[‘seo.description’] 本标签为网站描述标签,由{$tag[‘description’].’ – ‘.$tag[‘channel.description’].’ – ‘.$tag[‘site.description’]}标签组合而成,从而更利于说明网站的主题。
$tag[‘title’] 本标签调用输出当前页面的标题。
$tag[‘keywords’] 本标签调用当前页面的关键字。
$tag[‘description’] 本标签调用当前页面的网站描述。
$tag[‘site.title’] 本标签调用输出当前网站配置的站点标题。
$tag[‘site.keywords’] 本标签调用输出当前网站配置的关键词。
$tag[‘site.description’] 本标签调用输出当前网站配置的描述。

网站关键词SEO组合标签
<?php echo $tag[‘seo.keywords’]?>

网站描述SEO组合标签
<?php echo $tag[‘seo.description’]?>

站点模板的根路径
<?php echo $tag[‘path.skin’] ?>

网站的跟路径(绝对路径)
<?php echo $tag[‘path.root’] ?>

网站的主导航菜单
<?php nav_main() ?> 常见用法:<?php nav_main($str='<li>||</li>’,$select_str='<li>||</li>’,$_style='<span>||</span>’) ?>
第一个参数(‘<li>||</li>’)中的||为分割符,用来给定导航左右两边的标签;第二个参数为,选中时的代码;第三个参数可以设置主导航频道的显示样式,在这里用户可以引用设置的css样式。

首页调用一主栏目下的所有子栏目导行
<?php nav_call_sub($smId,$str,$select_str,$span_style,$next_icon,$count) ?>

前台模糊搜索页面代码添加
1,首先要求您的搜索框<input name=”keyword” id=”keyword” type=”text” value=”” />也就是name属性必需是[keyword];
2,其实要求您的搜索内容 <form name=”search” method=”post” action=”<?php echo$tag[‘form.action.search’] ?>”></form>,也就是要求[action]动作必需使用<?php echo $tag[‘form.action.search’] ?>这个标签;
3,如果想保留搜索关键字,需要在您的搜索框<input name=”keyword” id=”keyword” value=”<?phpecho urldecode($_REQUEST[‘keyword’]) ?>” type=”text” />,也就是为您的搜索框[value]属性加上<?php echo urldecode($_REQUEST[‘keyword’] ?>标签

系统会员登录标签
<?php dt_user_login($sid,$style=0) ?>

系统会员注册标签
<?php dt_user_regist($sid,$style=0) ?>

首页调用频道栏目图片
<img src=”<?php echo get_menu_info(‘originalPic’,false)?>” >调用出当前页面的栏目缩略图。

首页调用图文标签
<?php dt_article($channelId,$strcount=0) ?>

首页调用图文标签
<?php dt_article_normal($channelId,$strcount=0) ?>

首页调用图文标签
<?php dt_article_pic($channelId,$strcount=0,$style=0) ?>

首页调用图文标签
<?php dt_article_html($channelId,$strcount=0,$style=0) ?>

首页调用新闻标签
<?phpdt_list($channelId,$n,$strcount=0,$strcount1=0,$style=0,$isellipsis=true,$ordering=’ordering’,$fromcount=0) ?>

首页列表调用标签
<?phpdt_calllist($channelId,$n,$strcount=0,$strcount1=0,$style=0,$isellipsis=true,$ordering=’ordering’) ?>

首页调用新闻标签
<?php dt_list_blog($channelId,$n=0,$style,$ordering=’ordering’,$fromcount=0) ?>

首页调用新闻列表标签
<?php dt_calllist_blog($channelId,$n=0,$style=0) ?>

首页调用下载标签
<?php dt_download($channelId,$n,$strcount=0, $style=0,$isellipsis=true,$ordering=’ordering’) ?>

首页调用留言标签
<?php dt_guestbook($channelId,$n,$strcount=0,$strcountl=0,$style=0,$isellipsis=true) ?>

首页调用招聘标签
<?phpdt_jobs($channelId,$n=0,$strcount=0,$strcountl=0,$style=0,$isellipsis=false,$ordering=’ordering’) ?>

首页调用图片标签
<?phpdt_picture($channelId,$n=0,$strcount=0,$strcountl=0,$style=0,$isellipsis=true,$ordering=’id’) ?>

首页调用产品标签
<?phpdt_product($channelId,$n=0,$strcount=0,$strcountl=0,$style=0,$isellipsis=true,$categoryId=null,$ordering=’ordering’) ?>

首页调用视频标签
<?phpdt_video($channelId,$n=0,$strcount=0,$style=0,$isellipsis=true,$ordering=’ordering’) ?>

Seo先生整理发布,本文固定地址:https://seosir.cc/579.html?转载请注明。