网络营销电子商务研究中心  
How to buy the best prescription safety glasses in Canada? Let's study!
Go Back   网络营销电子商务研究中心 > 网站建设 > MetInfo
User Name
Password
 
FAQ Members List Calendar Cheap Glasses

Reply
 
Thread Tools Display Modes
  #1   IP: 49.87.51.58
Old 2016-04-01, 10:36 AM
Tabor Tabor is offline
初级会员
 
Join Date: 2005-07-25
Posts: 1
Tabor 现在声名狼藉
Default metinfo后台外观首页快速配置增加区块的方法

在默认情况下, metinfo后台外观首页快速配置增加区块为7块, 区块3,4,5为网站一行3列,一般来显示新闻标题的。

如何再增加3个区块,放在一行来也来显示文章标题呢?

这里我们要增加区别8,9,10三块。假设我们要个性的模板名为metv5,方法如下:

第一,打开templates/metv5/lang/language_cn.ini,templates/metv5/config.html,找到:
Code:
	$Column5=tmpcentarr($lang_Column5);
	$Column6=tmpcentarr($lang_Column6);
	$Column7=tmpcentarr($lang_Column7);
改为:
Code:
	$Column5=tmpcentarr($lang_Column5);
	$Column6=tmpcentarr($lang_Column6);
	$Column7=tmpcentarr($lang_Column7);

	$Column8=tmpcentarr($lang_Column8);
	$Column9=tmpcentarr($lang_Column9);
	$Column10=tmpcentarr($lang_Column10);
第二,打开templates/metv5/index.html, 找到:
Code:
<div class="clear"></div>
	<div class="index-news style-1">
		<h3 class="title">
			<span class='myCorner' data-corner='top 5px'>{$Column3[name]}</span>
			<a href="{$Column3[url]}" class="more" title="{$met_atitle}">{$lang_more}</a>
		</h3>
		<div class="active clear listel contour-2">{$index_list_1}</div>
	</div>
	<div class="index-news style-1">
		<h3 class="title">
			<span class='myCorner' data-corner='top 5px'>{$Column4[name]}</span>
			<a href="{$Column4[url]}" class="more" title="{$met_atitle}">{$lang_more}</a>
		</h3>
		<div class="active clear listel contour-2">{$index_list_2}</div>
	</div>
	<div class="index-conts style-2">
		<h3 class='title myCorner' data-corner='top 5px'>
			{$Column5[name]}
			<a href="{$Column5[url]}" title="{$met_atitle}" class="more">{$lang_more}</a>
		</h3>
		<div class="active clear listel contour-2">{$index_list_3}</div>
	</div>

改为:
Code:
<div class="clear"></div>
	<div class="index-news style-1">
		<h3 class="title">
			<span class='myCorner' data-corner='top 5px'>{$Column3[name]}</span>
			<a href="{$Column3[url]}" class="more" title="{$met_atitle}">{$lang_more}</a>
		</h3>
		<div class="active clear listel contour-2">{$index_list_1}</div>
	</div>
	<div class="index-news style-1">
		<h3 class="title">
			<span class='myCorner' data-corner='top 5px'>{$Column4[name]}</span>
			<a href="{$Column4[url]}" class="more" title="{$met_atitle}">{$lang_more}</a>
		</h3>
		<div class="active clear listel contour-2">{$index_list_2}</div>
	</div>
	<div class="index-conts style-2">
		<h3 class='title myCorner' data-corner='top 5px'>
			{$Column5[name]}
			<a href="{$Column5[url]}" title="{$met_atitle}" class="more">{$lang_more}</a>
		</h3>
		<div class="active clear listel contour-2">{$index_list_3}</div>
	</div>


       <div class="clear"></div>
	<div class="index-news style-1">
		<h3 class="title">
			<span class='myCorner' data-corner='top 5px'>{$Column8[name]}</span>
			<a href="{$Column8[url]}" class="more" title="{$met_atitle}">{$lang_more}</a>
		</h3>
		<div class="active clear listel contour-2">{$index_list_8}</div>
	</div>
	<div class="index-news style-1">
		<h3 class="title">
			<span class='myCorner' data-corner='top 5px'>{$Column9[name]}</span>
			<a href="{$Column9[url]}" class="more" title="{$met_atitle}">{$lang_more}</a>
		</h3>
		<div class="active clear listel contour-2">{$index_list_9}</div>
	</div>
	<div class="index-conts style-2">
		<h3 class='title myCorner' data-corner='top 5px'>
			{$Column10[name]}
			<a href="{$Column10[url]}" title="{$met_atitle}" class="more">{$lang_more}</a>
		</h3>
		<div class="active clear listel contour-2">{$index_list_10}</div>
	</div>
第三,通过phpmyadmin,操作数据库,插入下列命令:

INSERT INTO met_templates VALUES('534','metv5','0','4','6','2','','Column8','4-cm','4-cm','区块8内容','显示指定栏目或模块的内容列表','cn');
INSERT INTO met_templates VALUES('535','metv5','0','5','6','2','','Column9','5-cm','5-cm','区块9内容','显示指定栏目或模块的内容列表','cn');
INSERT INTO met_templates VALUES('536','metv5','0','6','6','2','','Column10','36-cm','36-cm','区块10内容','显示指定栏目或模块的内容列表','cn');

注意,要根据你的情况来个性数据表前缀以及其它参数。
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Prescription-glasses.com offers prescription glasses online at discount prices.
All times are GMT +8. The time now is 10:57 AM.


Powered by vBulletin Version 3.8.7
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.