文章摘要:pbootcms网站建设常用标签;幻灯片调用例子: {pboot:slide num=3 gid=1}{/pboot:slide} 幻灯片调用标签在全站可用: {pboot:slide num=3 gid=1} [slide:n] 序号,从0开头 [slide:i] 序号
pbootcms网站建设常用标签
首页制作
1、替换TDK
<title>{sort:name} - {pboot:sitesubtitle}</title><meta name="Keywords" content="{content:keywords}"/><meta name="Description" content="{content:description}"/>2、首尾公共部分
{include file=comm/head.html}
{include file=comm/foot.html}3、导航菜单
{pboot:nav num=10 parent=0}<a href="[nav:link]">[nav:name]</a>{pboot:if([nav:soncount]>0)}
{pboot:2nav num=10 parent=[nav:scode]}<a href="[2nav:link]">[2nav:name]</a>{pboot:3nav num=10 parent=[2nav:scode]}<a href="[3nav:link]">[3nav:name]</a>{/pboot:3nav}
{/pboot:2nav}
{/pboot:if}
{/pboot:nav}4、首页logo替换
{pboot:sitelogo}5、 搜索表单
<form action="{pboot:scaction}" method="get"><input type="text" name="keyword" size="15" placeholder="请输入要搜索的关键字" /><input type="hidden" name="author" value="admin"><input type="submit" class="fdj" value="" /></form>6、轮播图
幻灯片调用例子:
{pboot:slide num=3 gid=1}<a href="[slide:link]" target="_blank"><img src="[slide:src]" alt="[slide:title]" /></a>{/pboot:slide}
幻灯片调用标签在全站可用:
{pboot:slide num=3 gid=1}
[slide:n] 序号,从0开头
[slide:i] 序号,从1开头
[slide:id] 编号
[slide:src] 图片地址
[slide:link] 链接地址
[slide:title] 描述文本
{/pboot:slide}
num:为读取数量,可省略
gid:为分组编号
7、公司信息,电话,地址
{pboot:companyname} 公司名称
{pboot:companyaddress} 公司地址
{pboot:companypostcode} 邮政编码
{pboot:companycontact} 联系人
{pboot:companymobile} 联系手机
{pboot:companyphone} 联系电话
{pboot:companyfax} 传真号码
{pboot:companyemail} 联系邮箱
{pboot:companyqq} QQ号码
{pboot:companyweixin} 微信图标
{pboot:companyblicense} 营业执照号
{pboot:companyother} 其它信息
8、产品中心
指定栏目产品调用例子:<ul>{pboot:list scode=5 num=6 order=date}<li><a href="[list:link]" target="_blank"><img src="[list:ico]" alt="[list:title]"/><p>[list:title len=18]</p></a>[list:date style=Y-m-d]
[list:description]</li>{/pboot:list}</ul>
9、关于我们 (简介:[content:content drophtml=1 len=350])
{pboot:content id=1}
[content:id] 编号
[content:scode] 分类编码
[content:subscode] 副分类编码
[content:sortname] 分类名称
[content:subsortname] 副分类名称
[content:sortlink] 分类链接
[content:subsortlink] 副分类链接
[content:title] 标题
[content:titlecolor] 标题颜色
[content:subtitle] 副标题
[content:author] 作者
[content:source] 来源
[content:link] 链接
[content:outlink] 外部链接
[content:date] 发布日期
[content:ico] 缩略图
[content:pics] 图集
[content:content] 内容
[content:enclosure] 附件
[content:keywords] 关键词
[content:description] 描述
[content:istop] 是否置顶
[content:isrecommend] 是否置顶
[content:isheadline] 是否头条
[content:visits] 访问数量
[content:likes] 点赞数量
[content:oppose] 反对数量
{/pboot:content}
独立页设置
1、banner图片获取
{pboot:if('{sort:pic}'!='')}{sort:pic}{else}{label:no_banner}{/pboot:if}留言板页面
<form action="{pboot:msgaction}" method="post"><p>联系人:<input type="text" name="contacts" ></p><p>手机:<input type="text" name="mobile" ></p><p>内容:<input type="text" name="content" ></p><p>询盘也:<input type="hidden" name="xunpan" ></p>{pboot:if({pboot:checkcodestatus})}<p>验证码:<input type="text" name="checkcode" ><img title="点击刷新"src="{pboot:checkcode}" onclick="this.src='{pboot:checkcode}?'+Math.round(Math.random()*10);" /></p>{/pboot:if}<p><button type="submit">提交</button></p></form>本文采摘于网络,不代表本站立场,转载联系作者并注明出处:https://www.szwangzhanjianshe.com/WebsiteNews/106.html



