TomatoCart

65172 Downloads
446 users online
TomatoCart Community
Welcome, Guest
Please Login or Register.    Lost Password?
Bookmark and Share

如何添加一个新的页面,并在导航栏设定导航?
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: 如何添加一个新的页面,并在导航栏设定导航?
#3093
如何添加一个新的页面,并在导航栏设定导航? 1 Year, 5 Months ago Karma: 0
如何添加一个新的页面,并在导航栏设定导航?
niker6
Fresh Boarder
Posts: 13
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#3102
Re:如何添加一个新的页面,并在导航栏设定导航? 1 Year, 5 Months ago Karma: 6
你好 niker6! 现在我们以系统中的glass_gray模板为例,
1. 找到位于glass_gray下的index.php文件, 然后找到导航栏的代码 如下所示:
Code:

      <ul id="navigation">
       .... 
      </ul>


2. 您可以向ul中添加一个新的li元素,例如
Code:

'<li ' . ($osC_Template->getGroup() == 'forum' ? 'class="navVisited"' : null) . '><span class="navLeftHook"></span>' . osc_link_object(osc_href_link(FILENAME_FORUM, 'forum', 'SSL'), $osC_Language->get('forum')) . '<span class="navHoverDownHook"></ span><span class="navRightHook"></span></li>' 

FILENAME_FORUM 常量是定义在root/includes/filenames.php

3. 如果您对我们的项目有所研究的话, 您会发现在根目录下的文件都与导航栏中的连接相对应:
Home=>index.php
New Products => products.php,
Checkout => checkout.php等等,
当你点击某个链接的时候,系统会以地址栏中url带的query转向的到位于 glass_gray/content/下面相应的文件夹里面的相应文件!当然这会涉及到较大的改动, 您可以参考New Products的实现方式。
感谢您对我们的支持!
Kick7Spring
Team Member
Posts: 137
graphgraph
User Offline Click here to see the profile of this user
yulincun@live.cn
Last Edit: 2010/08/31 16:46 By Kick7Spring.
The administrator has disabled public write access.
 
#3116
Re:如何添加一个新的页面,并在导航栏设定导航? 1 Year, 5 Months ago Karma: 0
哦 天啊 要改到代码那里哦

我以前用ecshop模板的时候可以自动添加导航的 你们要是也能那样的话就很方便了 呵呵!

谢谢回复
加油! 加油!

支持tomatocart!
niker6
Fresh Boarder
Posts: 13
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1

Latest Blog Post

TomatoCart v2.0 – An open source ecommerce framework

Since the TomatoCart v1.0’s framework getting old and the core is not a pure MVC design, it causes many troubles ...

Blog | Administrator | Saturday, 21 January 2012

More in: About Us

-
+
3

contact_us

TomatoCart
+86-13771170725
info@tomatocart.com
http://www.tomatocart.com

Newsletter Subscription

Name:

E-Mail:

Verification Code:
Captcha

Receive HTML?