发新话题
打印

请问如何添加一个页面

请问如何添加一个页面

比如我想添加一个相册页面, 同时在导航上也添置链接,新页面使用风格主题与首页一样。
{$current_page_item[links]}><a href="./?action=photos" title="相册">Photos</a>
我应该做个哪种页面呢,在导航上如何链接呢,请大家指教一下。

TOP

sa1.6在index.php的最上后有这样的代码,
<!--<?php
if(!defined('SABLOG_ROOT')) {
        exit('Access Denied');
}
$current_page_item = array();
if (in_array($action, array('index', 'finduser', 'tags'))) {
        $current_page_item['index'] = ' class="current_page_item"';
} elseif (in_array($action, array('archives', 'tagslist', 'comments', 'trackbacks', 'search', 'links'))) {
        $current_page_item[$action] = ' class="current_page_item"';
}
print <<<EOT
-->
专注sablog
qq:1738143

TOP

引用:
原帖由 dxx 于 2008-7-30 21:59 发表
sa1.6在index.php的最上后有这样的代码,
请问是放在根目录的index.php还是主题里的index.php
请问具体怎么用? 怎么我加了进去显示错误呃..

TOP

应该是模板里面的,

谁能给个About文件,已经添加好导航,但界面中文显示乱码。

http://www.sendove.com/?action=about
参考下面这个朋友的帖子整的。
http://sablog.net/bbs/viewthread.php?tid=1664&highlight=yupoo

请帮忙!

[ 本帖最后由 sendove 于 2008-7-31 10:11 编辑 ]

TOP

发新话题