Code development

Latest techniques in site development; simpletests, coding practices, scalability, deployment and so on.
ObiWasabi's picture

AJAX Login Module Styling

Hi,

Fond of the Ajax Login module http://drupal.org/project/ajax_register It displays vertical
and could use some insight on displaying horizontal.

Should it be customized in the page.tpl.php or with jQuery. It's
hoped someone has a snippet for this. As I'm sure this has been

Read more

Providing the Open Media System

The following outlines a plan to make improvements to the Open Media profile and create a comprehensive guide to developing, implementing, and providing the Open Media platform. We will do this by capturing and creating training opportunities from the open development of the platform on actual stations. This is a work in progress, so additions, revisions, and suggestions are very much encouraged.

Read more
legion80's picture

Multiple forms on one page

Hello,

I have been struggling with a forms issue that I thought maybe someone could help answer for me.

Basically I am trying to have several drupal forms laid out in one page, with one "Save" button, which will save all of the forms on the page at once. Each form is already assumed to edit an existing node, so I do not need to worry about the case where the user is creating a new set of nodes from the forms on the page.

Read more
dkinzer's picture

Shoudl I use CCK for everthing?

This is a newbie question, so please forgive me if it's obvious (my copy of Pro Drupal Development doesn't cover it):

I am writing my first module. It needs to use a table with zip-codes and regions and other attributes to work. My first inclination is to add this table to Drupal. But I was asked if I could create a new content type and import these records as content (unpublished). That way if any

Read more
ronliskey's picture

How to professionalize my workflow by adding Drush, CVS, SVN, etc?

I'm still coding in DreamWeaver (embarrassed). Have tried switching to other apps/methods, but always drift back to what I know and where I can stay productive. Is there documentation anywhere on how to move to a more professional workflow that covers integrating a real code editor (perhaps Eclipse) with Drush, CVS, SVN, Dig, etc? I can find snippets on each but can't get my head around linking the whole process together--at least not fast enough to also stay productive.

Read more
ludo1960's picture

I feel a module coming on......

I'm building a site based on OG Panels, and one thing has got me befuddled:

I configured the node template for my group node in the panels dashboard, then created some panel pages on my group node:

So my Menu_local_tasks look like: tab1 , tab2, tab3

However when I click one of my posts the tabs "disappear"

Looking at my menu_router table: node/% has a page_callback of page_manager_node_view and a file entry of sites/all/modules/ctools/page_manager/plugins/tasks/node_view.inc

Read more
hortitude's picture

Migrating databases...?

I was looking into best practices for migrating databases from development to production and ran across this: http://drupal.org/node/205366

Read more
aidanlis's picture

Best way to do requirements checking on CCK or profile fields

Hi everyone,

I have code popping up like this in a few of my modules ... basically I go through and check all of the hardcoded profile and CCK fields I use actually exist.

It seems like there could be a better way to do it, any ideas?

<?php
function example_requirements($phase) {
$requirements = array();

if ($phase === 'runtime') {

// Check for the profile category
$categories      = profile_categories();
$category_exists = FALSE;
foreach ($categories as $category) {
  if ($category['name'] === EXAMPLE_PROFILE_AFFILIATE_CATEGORY) {
Read more
glennnz's picture

Buttons on Nodes

I'm looking for a way to add a button to the end of a node that actually does something.

Rendering the button is easy:

<?php
function button_nodeapi(&$node, $op, $a3 = NULL, $a4 = NULL) {
  switch (
$op) {
    case
'view':
     
$node->content['button'] = array(
       
'#type' => 'button',
       
'#value' => t('A Button!'),
      );
    break;
  }
}
?>

The hard part is getting the button to DO something!

....

Glenn

Read more
aaron's picture

Impromptu DimDim Session about Emfield + Imagecache

Start: 
2009-10-28 11:40 - 12:00 America/New_York
Organizers: 
Event type: 
Online meeting (eg. IRC meeting)

I'm going to do a quick, impromptu Dojo session on DimDim about using Embedded Media Field in conjunction with Imagecache. Because I feel like it. Sorry about the short notice; I'll post deets here for interested people who want to know but missed the show... For Drupal 6. Join #drupal-dojo in IRC.

Read more
Subscribe with RSS Syndicate content

Drupal Dojo

Group organizers

Group events

Add to calendar

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week