drupal7
文章平均质量分 73
haohappy2
这个作者很懒,什么都没留下…
展开
-
Wysiwyg API template plugin
In TinyMCE, CK Editor and FCK Editor, there is a template function, which allows a user to select a HTML template from a drop-down and insert it into the WYSIWYG text-area. This module supports those ...原创 2012-01-13 22:47:49 · 83 阅读 · 0 评论 -
Drupal 7 db_query error
Please have a try and you will never see the error $rows = array(); /*while($row = db_fetch_object($result)) { $rows[] = $row; }*/ foreach ($result as $row) { $rows[] = $row; return $...原创 2013-09-17 15:03:59 · 109 阅读 · 0 评论 -
Drupal 6&7 Custom Template And Invoke Module
How to invoke a module block in the template? <?php $block = module_invoke('module_name', 'block', 'view', 0); print $block['content'];?> How to create a module block? Drupal has sligh...原创 2013-09-16 17:50:00 · 63 阅读 · 0 评论 -
Drupal Error Tracking
error_reporting(E_ALL); ini_set('display_errors', TRUE); ini_set('display_startup_errors', TRUE);原创 2013-09-16 13:34:02 · 76 阅读 · 0 评论 -
Drupal SNS Solution
https://drupal.org/node/1724070 可用组件: 用户订阅,更新通知:Watcher,Comment Notify 用户积分核心:User Points, 用户积分扩展:User Points Contributed,User points Nodes and Comments,User Points Voting API,Userpoints Karma,...原创 2013-08-28 17:46:05 · 146 阅读 · 0 评论 -
dynamically load shadowbox
<script type="text/javascript"> var fqdn = 'demo.restaurantappengines.com'; (function() { if (document.getElementById('restoloadscript')){return false;} var j1 = document.createElement('scr...原创 2014-01-08 13:39:05 · 96 阅读 · 0 评论 -
drupal media:youtube autoplay
Click on Configuration Click on File Types For Video, click on manage file display For the display you are using (Default, Link, Preview, etc..), click on the YouTube Video tab under Display Sett...原创 2013-12-19 14:39:37 · 63 阅读 · 0 评论 -
How to use Drupal Behaviors
1. in your node add below scripts. <a href="#" id="togg-link">Click this link to toggle the content displayed below</a> <div id="togg"> This content will be toggled o..原创 2013-07-18 17:22:07 · 124 阅读 · 0 评论 -
drush drupal feature
Drush is a shell utility that eases your life with Drupal. Bored of all these clicks? Let Drush help you! Even better: Features is well integrated into Drush and let you do everything via commands: ...原创 2013-12-03 15:10:55 · 81 阅读 · 0 评论 -
An Introduction to the Drupal Features Module
When you create a feature like a photo gallery, slideshow, blog or forum for Drupal, it involves installation of quite a few individual modules. In addition, each module often requires a lot of...原创 2013-12-03 14:57:38 · 92 阅读 · 0 评论 -
Drupal:Mobile site Creation
Recently, I was asked to create a mobile version of an existing Drupal website. Ideally, the two sites would run off the same database so that the same content could be used. There are a number of way...原创 2012-04-22 21:49:12 · 90 阅读 · 0 评论 -
Drupal:Multisite Installation
Note: to create a new Drupal site using these directions, you will need to have root access to your server and already have a valid domain name to use. Set up the virtual host name routing Log in ...原创 2012-04-22 21:42:12 · 132 阅读 · 0 评论 -
Integrating Alfresco Content into a Drupal Site
I've been on a bit of a tear with CMIS lately. Every time I have a project requirement that mentions document storage or a document library, I think "hey, let's use Alfresco, that CMIS interface is...原创 2013-04-29 17:54:46 · 103 阅读 · 0 评论 -
Drupal Common Function
判断是否为首页: if( $is_front ){ /* 首页代码 */ } 判断用户是否登陆: global $user; if ( $user->uid ) { /* 用户已经登陆 */ } else { /* 用户没有登陆 */ } 判断当前用户是否管理员: if ( $is_admin ) { /* 是管理员 */ } else { /*...原创 2013-10-26 19:06:21 · 64 阅读 · 0 评论