欢迎各位兄弟 发布技术文章
这里的技术是共享的
本文实例讲述了drupal实现输出可点击表头排序表格的方法。分享给大家供大家参考。具体实现方法如下:
如果表格数据全部来自数据库,可以直接使用Drupal 7的tablesort功能。
Drupal中,有许多用户界面采用了拖动排序的功能。在排序的界面上,拖动排序是一种比较友好的形式。下面是一个例子。
这是 主题的 template.php文件function bartik_clone_preprocess_page(&$variables) {......................//此处复制原来的 template_preprocess_page的代码 drupal_set_title(' ');//此处重写 title
aaaaa
我们 hook_node_view,这里为 custom_one_node_view (当然也可以放在hook_init里面) 注意,
最重要的是 menu_tree_set_path,两个参数一个是菜单名,另一个是菜单的根路径
https://www.drupal.org/docs/understanding-drupal/understanding-drupal-version-numbers/legacy-drupal-release-history
admin/structure/menu/settings
/admin/reports/fields/permissions 字段权限
1) 先在后台进行截取的处理
主要是看 /node-admin/16993 drupal7 teaser truncate strip_tags
1) http://drupal.org/documentation/modules/field 模块
http://drupal.org/documentation/modules/field-ui 模块
http://drupal.org/project/content_access 这个模块好像是不需要安装的
/admin/config/media/file-system/filefield-paths
Drupal有两种允许用户下载文件的方式,它们是私有的和公共的。
在模版页内用l()加入如下登录链接:
l("登录", "user/login", array('attributes' => array('title' => t('登录唯枫志')), 'query' => drupal_get_destination()))
https://www.drupal.org/project/content_approval
一个drupal 7网站,前期工作基本结束,到文章审核发布的环节了。于是考查了几个drupal的类似功能的模块。
好像作用不大,可以看看
https://www.drupal.org/project/comment_perm 模块
在模板的 template.php文件中,如下的hooke函数可以看到建议模板
Is there an easy way to get the comments of a node programmatically in Drupal 7?
1)
In Drupal 7, the comment title setting is under "admin/structure/types/manage/[CONTENT TYPE]
https://www.drupal.org/project/node_convert 这个节点内容类型转换
search module (custom search module) 有时竟不能搜索到 body content内容,,为什么?
就因为 Field Permissions 这个模块 设置了权了问题 ,哎
/admin/reports/fields/permissions (如下图)
和 /admin/people/permissions (就不截图了)
看看权限有没有问题
Internationalization
https://www.drupal.org/project/i18n