欢迎各位兄弟 发布技术文章
这里的技术是共享的
SEPTEMBER 06, 2016
转载:https://yplam.com/post/79
Drupal Console 是面向Drupal 8 的一套命令行工具,用来生成Drupal 8模板代码,并且可以跟Drupal 8应用进行交互。
function shipingzhongcustomfourteenth_after_build_xiaonenfenxi_node_form_validate($form, &$form_state){
function shipingzhongcustomfour_get_total_field_baomingxuefei_value(){ $view = views_get_current_view();
function _getItem_time($view,$display_id,$field){
function _kefuchat_node_form_validation_two($form, &$form_state){
<?php//取字符串长度//反正这里是中文算一个 在utf-8的情况下 不管php里有没有mb_strlen函数 都没有问题;//但是在gbk的情况下 是有问题的
//这里 form_alter表单 function shipingzhongcustom_form_alter(&$form, &$form_state
https://www.drupal.org/project/autocomplete_widgets
cck添加字段这里 可以看到
autocomplete for allowed values list
autocomplete for existing field data ( 大约就是数据库中没有这条数据的话,就自动增加这条数据,,,有的话,就使用原来的数据吧 )
中国省市县三级联动
下面是自己亲自做的 有大用
视图界面 distinct 不同
(重复唯一 reduce duplicates ) (去掉重复项 有大用)
缓存可以提高网站的访问速度,drupal中Boost实现匿名用户的缓存,Authcache可以加速登录用户的响应时间,对不同的role进行缓存。