Needs Updating

Monroe County United Ministries

Last modified: June 3, 2009 - 19:05

Welcome to Monroe County United Ministries.

Import / Export API QuickStart Guide

Last modified: June 2, 2009 - 15:05

Import / Export API QuickStart Guide

The Drupal Import / Export API is a highly flexible framework for getting data into and out of Drupal. In actual fact, it's a framework for getting data out of any one source, and into any other source. However, the most common uses for the API involve having Drupal as one of these sources. So, to make life simpler, you should think of the API in terms of its more limited definition, unless (or until) you reach a point where you need to go beyond this.

Contents:

Media Browser

Last modified: November 9, 2009 - 01:52

PLEASE NOTE: The following documentation is outdated, an updated version will be online as soon as possible.

Media Browser provides a style plugin to Views that formats a display in an easy-to-use content browser. The module is called Media Browser as users may be familiar with this kind of browsers from YouTube or other video sharing websites, but the style plugin can be applied to any kind of content.

In order to make it work correctly it requires two displays:

  • List Display: its role is to list the different items in the browser (in YouTube: the list of video thumbnails on the right). You will probably use a block display for that. On this display you will choose the "Media Browser" style plugin.
  • Attachment Display: this one will be responsible for showing the one item you have selected from the list display (in YouTube: the main video area). This display must be attached to the list display.

Configuration: An Example

Say we want to build a media browser showing videos in a way similar to what YouTube does. With the CCK module we create a content type called "Video" containing the following fields:

  • Title

Icons, Hyperlinks & Description text in your Nice Menu's.

Last modified: August 11, 2009 - 20:37

It is possible to custom theme your Nice Menu's allowing the addition of icons, additional hyperlinks and a bit of HTML formatted description text right inside the menu itself giving your drop-down menu's a very rich and interactive presentation.

Please note that this is not a simple module solution and requires overriding the theme function provided in nice_menus.module. In addition, it will require a more than fair proficiency with CSS to get everything working the way you'd like.

You can view an example of the finished product at www.3xlogic.com to see what we are trying to achieve.

1) How the Nice Menu Tree and Menu Links are built by default.

Nice Menu's uses a function called theme_nice_menu_tree to build the tree of UL's and LI's that are wrapped around the Drupal core menu items. This function is found in the nice_menus.module. Within the tree, it places the Drupal menu items inside of the LI elements by calling a system function called menu_item_link($mid) as shown below. All that happens is that Nice Menu's gives menu_item_link a Menu ID # ($mid) and menu_item_link returns a formatted url wrapped in anchor tags including the Drupal menu's title as the link text and the description as the alt-title tag (the part that shows like tool-tip).

README files

IMPORTANT: This is a work in progress. Discussion happens in http://groups.drupal.org/node/14523

The only current standard for contributed code is to place a README.txt with in the package. Often times additional documentation can be placed within an INSTALL.txt.

Some nicer README.txt files can be found here:

Morbus' style (which matches Drupal core's style):
http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/bot/README....

sun style:
http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/admin_menu/...

John VanDyke/Matt Westgate style:
http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/actions/REA...

syscrusher style:
http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/links/READM...

Exporting items

Last modified: April 22, 2009 - 06:29

(How to automatically set the type of author: author roles vs. field types. See http://drupal.org/node/332915#comment-1362172 for reference)

Syndicate content
 
 

Drupal is a registered trademark of Dries Buytaert.