易优TAGS自定义风格的简易方法

资源来源网络,如需授权,请更换源码,模块仅供学习,如需商用请购买正版授权,本栏目不提供技术服务!
如遇蓝奏网盘打不开lanzous替换成lanzoux尝试!

涉及的修改文件如下:

applicationhomecontrollertags.php文件

用编辑器打开他

找到:

if (!empty($tagindexInfo)) {

$tagid = $tagindexInfo[‘id’];

$tag = $tagindexInfo[‘tag’];

在下面增加一段:

$viewfile = $tagindexInfo[‘viewfile’];

再找到:

$field_data = array(

‘tag’   => $tag,

‘tagid’   => $tagid,

下面增加一行:

‘viewfile’ => $viewfile,

再次找到:

/*模板文件*/

$viewfile = ‘lists_tags’;

将他修改为:

/*模板文件*/

if($viewfile) {

$viewfile = $viewfile;

}else{

$viewfile = ‘lists_tags’;

 

}

保存即可;

打开:

applicationadmincontrollerTags.php文件

找到以下代码:

/**

* 编辑

*/

public function edit()

{

if (IS_POST) {

$post = input(‘post.’);

if (empty($post[‘id’])) $this->error(‘操作异常’);

$updata = [

‘add_time’ => time(),

‘seo_title’ => !empty($post[‘tag_seo_title’]) ? $post[‘tag_seo_title’] : ”,

‘seo_keywords’ => !empty($post[‘tag_seo_keywords’]) ? $post[‘tag_seo_keywords’] : ”,

在这下面增加以下代码:

‘viewfile’ => !empty($post[‘viewfile’]) ? $post[‘viewfile’] : ”,

最后打开模板文件:applicationadmintemplatetagsedit.htm

文件

找到以下代码:

<dl class=”row”>

<dt class=”tit”>

<label for=”tag_seo_description”>SEO描述</label>

</dt>

<dd class=”opt”>

<textarea rows=”5″ cols=”60″ name=”tag_seo_description” id=”tag_seo_description” style=”height: 60px;”>{$tag.seo_description}</textarea>

<p class=”notic”>标签调用方法:{literal}{$eyou.field.seo_description}{/literal}</p>

</dd>

</dl>

在下面增加一段以下代码:

<dl class=”row”>

<dt class=”tit”>

<label for=”viewfile”>指定风格</label>

</dt>

<dd class=”opt”>

<input type=”text” name=”viewfile” id=”viewfile” value=”{$tag.viewfile}” class=”input-txt”>

<p class=”notic”>只要填写风格名称即可不包含.htm类型,比如:tagindex</p>

</dd>

</dl>

 

©下载资源版权归作者所有;本站所有资源均来源于网络,仅供学习使用,请支持正版!
织梦模板网 » 易优TAGS自定义风格的简易方法
☉免责声明:本站所有模板均来自用户分享和网络收集,仅供学习与参考,请勿用于商业用途,如果损害了您的权利,请联系网站客服,我们核实后会立即删除。
☉如果源码网盘地址失效!或有其他问题,请点我报错,谢谢合作!
☉人民币与积分汇率为1比10,即1元=10积分.有任何疑问请联系客服
☉如有其他问题,请加网站客服QQ(330921598)进行交流。
☉本站提供的源码、模板、软件工具等其他资源,都不包含技术服务,请大家谅解!
☉源码、模板等资源会随着技术、环境的升级而存在部分问题,还请慎重选择。

发表评论

加入织梦模板网永久VIP 海量资源免费下载

立即查看 了解详情