- 浏览: 87372 次
- 性别:
- 来自: 深圳
最新评论
Copy and paste the theme_links function from theme.inc to your template.php file. change the name of the function to YOURTHEME_links where YOURTHEME is the name of your theme.
Add the following code snippet on the second line of the function, after the "$output=' ';"
As it is currently setup the secondary links will have the delimiter.
Next go to your page.tpl.php file and insert the following code into where you want the links to show up.
原文:http://drupal.org/node/60341
Add the following code snippet on the second line of the function, after the "$output=' ';"
<?php // | delimiter added here. if($attributes['class'] == 'links secondary-links') { $linklist = array(); foreach ((array)$links as $key => $link) { $linklist[] = l($link['title'], $link['href'], $link); } // Return the links joined by a '|' character return join(' | ', $linklist); ?> }
As it is currently setup the secondary links will have the delimiter.
Next go to your page.tpl.php file and insert the following code into where you want the links to show up.
<?php if(isset($secondary_links)){ print YOURTHEME_links($secondary_links, array('class' => 'links secondary-links')); } ?>
原文:http://drupal.org/node/60341
发表评论
-
内部用Drupal/PHP开发规范1.2
2011-07-19 22:11 1315前言 常言道,“没有规 ... -
drupal_get_path_alias($_GET['q'])获得当前路径
2011-05-01 02:48 869drupal_get_path_alias($_GET['q' ... -
更改imagefield的图片的alt和title值为terms和desrction
2010-09-17 17:07 1079imagefield_formatter.inc // ... -
filefield在firefox下上传文件出错http0error的解决办法
2010-09-16 15:46 1079/* '#ahah' => array( // w ... -
上传出错
2010-09-12 01:07 877more than likely eveyone who is ... -
Drupal系统.htaccess文件的设置 (转)
2010-09-11 21:15 2210对很多站长而言,做301重定向是一个非常麻烦的事,尤其 ... -
taxonomy 模块有个隐藏的路径
2010-09-10 11:17 744taxonomy 模块有个隐藏的路径,“taxonomy/te ... -
使用Flag来标记精华评论(转)
2010-09-09 14:08 2449flag模块是一个灵活的标记模块,使用这个模块可以标记任意的节 ... -
views中为图片或标题加新窗口链接的最好办法
2010-09-08 22:19 908首先在field中加入path,把path调到最前面。选中Ex ... -
i18n Synchronization 及 image_fupload的问题
2010-09-08 22:19 718新建文件时同步不正常,但编辑却正常。 drupal.org上 ... -
列出所有terms的token
2010-09-08 22:17 605装上token_custom插件 定义一个token为 ... -
同一drupal多站点,clean url不工作
2010-09-08 22:16 859把.htaccess里的 RewriteRule ^(.*) ... -
在theme里区别显示一般分类与freetag标签
2010-09-08 22:15 756add this function to template.p ... -
修改drupal的ping模块以便ping中文搜索引擎
2010-09-08 22:14 1461Ping:Ping 是针对 blog内 ... -
drupal中views标题的动态写法
2010-09-08 22:12 1037当views从Arguments中动态提取参数的时候,标题用% ... -
cck pager中的号码从只有下方改成上下都有
2010-09-08 22:11 815cck_pager.module中的 functio ... -
drupal theme:按照内容类型设计页面布局
2010-09-08 22:09 1710由 Evance 于 星期一, 2007-12-24 08:5 ... -
drupal views中page内容和default不同的办法
2010-09-08 22:08 792Fields→按下override→更新。此時針對Fields ... -
Zen 初始化主题的安装ZZZ
2010-09-08 22:02 9901.下载最新版的zen( http://drupal.org/ ... -
computed_field的使用
2010-09-08 22:01 801Computed Code: if (is_null($ ...
相关推荐
drupal7 后台管理菜单模块,用这个管理配置drupal会非常方便的
drupal8下拉菜单模块 nice_menus,drupal8版本不好找,使用,我写了个教程,大家可参考
drupal7.4.1中文汉化包,喜欢drupal的朋友赶紧下载吧,好东西别错过哦!加油,卡姆昂,贝比!
drupal7.13汉化版中文包 最新更新 全球首发 呵呵 夸张了 作者不是我,感谢对汉化有杰出贡献的中国人才!
解决Drupal7中文附件和图片乱码问题。中文附件使用的原生态处理方式,上传什么文件名显示什么...安装启用附件中的transliteration模块,该附件在原版基础上修改过,对附件不做处理,对图片字段采用汉字转拼音处理。
using Drupal 中文翻译版 有两个章节没有翻译
drupal搜索时,用中文,把中文分为关键词。
"Enterprise Drupal 8 Development: For Advanced Projects and Large Development Teams" English | ISBN: 1484202546 | 2017 | 309 pages | PDF | 9 MB Successfully architect a Drupal 8 website that scales ...
包含:Drupal7宝典; Drupal开发指南; Using Drupal(强烈推荐) 值得你下载!
drupal中有名的ZEN主题,一般drupal的主题都是继承该主题进行开发
Drupal dataDrupal data
drupal8下拉菜单的实现,浏览次数统计的实现,轮播图的实现
drupal8.0最新版中文汉化包下载,喜欢drupal的朋友赶紧下载吧!好东西,别错过哦!
drupal中文翻译前辈提供,感谢他们的无私奉献。翻译为国内drupal用户提供了很多方便。
Drupal中文语言包,设置中文时使用系统的语言包会有问题,推荐下载使用这个。
此文档详细介绍drupal中如何创建一个菜单和一个模块,自定义请求路径执行你想要的php方法。
drupal6的安装,drupal6的安装drupal6的安装drupal6的安装
添加菜单树渲染结构到(pre)进程钩子为theme_menu_tree();添加了一个新的drupal_is_https()API函数;搜索记录现在可以被禁用(管理界面中的新选项;日期类型配置页面上的短和中日期格式的默认值现在是正确的;...
drupal7 vs drupal6 详细的列出了从drupal6升级到drupal7所做的一些改动。 从代码,配置,UI,API等全方面的诠释drupal7与drupal6 的不同之处。
drupal-pi, 在单个 树莓派 上,Drupal Drupal引脚 单个 树莓派 上的Drupal 这个项目是 Rasbperry Pi Dramble项目的一个分支,它帮助在一个集群('树莓') 上安装 Drupal,这一点。这个 playbook/项目使得在一个简单的...