Posts

Showing posts from June, 2012

Module - Clientside Validation Usage

The main module (Clientside Validation) provides the core functionality for Clientside Validation. However, it does nothing by itself, it needs at least one of its submodules to provide any real functionality. The submodules are:
Clientside Validation FAPI: Provides Clientside Validation for the Form API Validation module.Clientside Validation Field Validation: Provides Clientside Validation for the Field validation module (Drupal 7 only).Clientside Validation Form: Provides Clientside Validation for standard Form API elements.Clientside Validation HTML5: Provides Clientside Validation for HTML5 elements (see Drupal HTML5 Initiative, Drupal 7 only).Clientside Validation Webform: Provides Clientside Validation for the Webform and Webform Validation module.Read More.....

www.drupal.org

Module - Clientside Validation

This module adds clientside validation (aka "Ajax form validation") for all forms and webforms using jquery.validate. The included jquery.validate.js file is patched because we needed to be able to hide empty messages.

Read More....

www.drupal.org

Theming Guide

This handbook is about customizing the look and feel of a Drupal site. We'll show you how you can modify the appearance of your Drupal site without requiring expert knowledge of programming. And if you wish to go further, we cover that too.
This guide assumes some knowledge of HTML and CSS but no PHP programming knowledge is necessary. It also assumes you have administrator's privileges to a Drupal site. You might also want to familiarize yourself with some of the terminology used in Drupal. We concentrate on Drupal 7 with notes for Drupal 6 where applicable.
Other Places to ExploreInstalling Themes - To install existing, contributed themes, please visit Installing themesContributed Themes - Free Contributed themes at drupal.org. See demos of some of them at Theme Garden.Custom Themes - Unique custom themes created by Drupal designers that you can hire.Theming Tutorials - View a number of theming videos which guide you through common scenariosSupport - Having prob…

What's New in Drupal 7

New Minimum System Requirements: This is not a complete list of requirements. Please read the complete list of requirements.
Database: MySQL 5.0.15 or PostgreSQL 8.3PHP Version 5.2 or higherPHP Memory: 40M - 64M Security:More secure implementation for scheduled tasks (cron.php).More secure password system.More secure log-in system.Modules can be updated via the web. Usability:Administrative links to edit existing page elements are now available on each web page, without having to go to an administration page first.Improved support for integration of WYSIWYG editors.Added more drag-and-drop for administrative tasks.Permissions now have the ability to handle more meta-data (permissions now have a description).User 1 created as part of the installation process.Added features to the default install profile (tagging on the Article content type).Setting up automated task runs (cron) can now be achieved via Drupal's configuration alone, without having to install any scripts on the we…

Drupal 7 Learnings

A few months ago Drupal 7 was released and ever since then we've been working hard to adapt to the changes. Here are some of the things that I've learnt over the last few months. Thought it would be a good idea to share it with the community. Do let me know your thoughts about these in comments section below !
Development Learnings

1) There is a change in the filter format table in d6 and d7
     - In d6 it is named as filter_formats and  in d7 it is filter_format and  even the fields are different.

2) We no longer need drush for migration. Now we can migrate data from the administrator interface itself. But the drawback of this is we can't use the “itemlimit” and “idlist” to restrict node creation.

3) We no longer have the nodeapi function. Now to use any $op of the nodeapi we need to call the function node_<op>.
        e.g. if we wish to call the ‘insert’ $op , we will use hook_node_insert()

4) We no longer have the db_result() function. This is how we can use it …

Module - WYSIWYG Filter

The WYSIWYG Filter module provides an input filter that allows site administrators configure which HTML elements, attributes and style properties are allowed. It also may add rel="nofollow" to posted links based on filter options. It can do so with no additional parsing on user input. That is, it may apply nofollow rules while parsing HTML elements and attributes.
The filter is based on whitelists that can be defined from the filter settings panel. Rules for HTML element and attributes are defined using the same syntax of the TinyMCE valid_elements option.

Read More.....
www.drupal.org

Setting up variables for use in a template (preprocess and process functions)

The main role of the preprocessor is to set up variables to be placed within the template (.tpl.php) files. Plain theme functions do not interact with preprocessors.
Notes:
Preprocessors are also used for providing template suggestions.In versions 5 and below, the function _phptemplate_variables served the same purpose. It has been deprecated in 6.Prior to Drupal 6.7, for your theme to have its preprocessors recognized, the template associated with the hook had to exist inside the theme. When a default template exists, copy it to your theme and clear the registry (or you should really be upgrading to a later version of Drupal anyway for security reasons, at which point you don't have to worry about this).Read More..
www.drupal.org

Last Updated

<div class="ftr_last_updated clear"> <?php print t('Last Updated on:'); ?>
  <?php
       $format2 = 'd-m-Y';
       $result2 = db_query("SELECT title, changed FROM {node} WHERE status = 1 ORDER BY changed DESC");
        if ($node = db_fetch_object($result2)) {
           $output2 .= date($format2, $node->changed);
         }
          print $output2;
  ?>
</div>

Module - CKEditor - WYSIWYG HTML editor

This module will allow Drupal to replace textarea fields with the CKEditor - a visual HTML editor, sometimes called WYSIWYG editor. This HTML text editor brings many of the powerful WYSIWYG editing functions of known desktop editors like Word to the web. It's very fast and doesn't require any kind of installation on the client computer.
What is CKEditor? CKEditor is the next version of FCKeditor. The editor has been rebranded and completely rewritten. It is now much faster (the code has been optimized), loads faster (the number of files has been reduced, so the browser will perform less HTTP requests) and developers friendly.

Read More 
www.ckeditor.com/ckeditor-for-drupal 
www.drupal.org/project/imce
www.drupal.org

page.tpl.php

General utility variables:
$base_path: The base URL path of the Drupal installation. At the very least, this will always default to /.$css: An array of CSS files for the current page.$directory: The directory the theme is located in, e.g. themes/garland or themes/garland/minelli.$is_front: TRUE if the current page is the front page.$logged_in: TRUE if the user is registered and signed in.$is_admin: TRUE if the user has permission to access administration pages.Read More

www.drupal.org