Skip to main content

Home/ Groups/ Drupal for Developers
mongolito 404

The Great Pretender: Making your data act like a field | Lullabot - 3 views

  • Now, though, it's possible for any module to tie into CCK's field management page to control the positioning of custom content. The key is hook_content_extra_fields(), and in this article we'll show you how to use it.
  • Now, though, it's possible for any module to tie into CCK's field management page to control the positioning of custom content. The key is hook_content_extra_fields(), and in this article we'll show you how to use it.
Leandro Ardissone

Creating a Compound Field Module for CCK in Drupal 6.x, from Poplar ProductivityWare Ar... - 8 views

  •  
    Create a new CCK field.
  • ...1 more comment...
  •  
    This is a nice foray into defining your own custom field types in CCK. Thanks for sharing.

    However, as regards "multi-groups" in CCK, I've used CCK version 6.x-3.x-dev and it's worth a look.
  •  
    Oh, really?
    I'm just needing to use multi-groups. Well, multiple-fields field group, or whatever.

    For example a recipe with ingredients where you can enter: amount (textfield), unit (option field), ingredient name (textfield).

    Thanks.
  •  
    when your ready to go to drupal 7 here is the article for that http://www.phase2technology.com/node/1495
Josh Beauregard

Drupal modules api site - 2 views

  •  
    Api documentation for contributed modules
Hans-Peter Zahno

Directory of Public Features Servers | groups.drupal.org - 3 views

  •  
    Considering the power of the Features module I'm surprised this list of public features servers is so small. Hopefully it will grow. Currently there isn't even a decent image gallery feature on any of these public features servers.
cecilia marie

Software Support Saved My Spring Days - 3 views

Last spring, I was having trouble with a recurrent problem from a software I installed on my PC. It keeps on displaying errors on the screen which really got me ticked off. After 2 weeks of putting...

software support

started by cecilia marie on 10 Aug 11 no follow-up yet
cecilia marie

Computer Problem Solved - 1 views

I was having difficulties with the computer problem I am facing with and it really disturbs me. I cannot proceed with my school works well because it keeps on showing up. Then I discovered Compu...

computer problem

started by cecilia marie on 08 Jul 11 no follow-up yet
cecilia marie

Reliable Online Computer Repair - 3 views

My PC has been acting strange lately and I can no longer fix it on my own. I did everything I could but this time, I really need someone who can really fix my computer problem. I called Computer Pr...

computer problem

started by cecilia marie on 06 Jun 11 no follow-up yet
Daniel Gregoire

Programmatically Create, Insert, and Update CCK Nodes | doug | CivicActions - 1 views

  • Always use content_database_info to get the database info. For example:

      $field1 = content_database_info(content_fields('yourfield1', 'yourtable'));
      $table1 = $field1['table'];
      $column1 = $field1['columns']['value']['column'];

      $field2 = content_database_info(content_fields('yourfield2', 'yourtable'));
      $table2 = $field2['table'];
      $column2 = $field2['columns']['value']['column'];

      if ($table1 == $table2) {
        $sql = "SELECT n.*, t1.$column1, t1.$column2 FROM {node} n ";
        $sql .= " INNER JOIN {$table1} t1 ON t1.nid = n.nid AND t1.vid = n.vid";
      }
      else {
        $sql = "SELECT n.*, t1.$column1, t2.$column2 FROM {node} n ";
        $sql .= " INNER JOIN {$table1} t1 ON t1.nid = n.nid AND t1.vid = n.vid";
        $sql .= " INNER JOIN {$table2} t2 ON t2.nid = n.nid AND t2.vid = n.vid";
      }
      $sql .= " WHERE n.nid = %d";
  •  
    Important point: Using special functions to let CCK get the proper name of the field (allowing users to make CCK changes in the UI and let your code continue to work).
Daniel Gregoire

Setup of /sites directory for multi-site | drupal.org - 0 views

  •  
    Good overview of directory structure for setting up Drupal multisite installations.
Daniel Gregoire

On RHEL and CentOS. | drupal.org - 0 views

  •  
    Script and explanation of getting Solr setup as a service in RHEL/CentOS.
mongolito 404

Free your content of PHP: Moving PHP code out of blocks, views and nodes | 2bits.com, I... - 2 views

  • From the early days, Drupal had the ability to embed PHP code in its content. This provides flexibility and functionality, most importantly, nodes and blocks can contain dynamically fetched data from the database using custom queries and displayed them in other content.

    This is an easy approach to get such data without writing a module. All you need to do is assign the PHP input format filter to the node or block and paste your PHP code in it, and voila, you have dynamic content.

    Code in Content: the issues

    However, this approach is suboptimal and has serious drawbacks, including:

  •  
    From the early days, Drupal had the ability to embed PHP code in its content. This provides flexibility and functionality, most importantly, nodes and blocks can contain dynamically fetched data from the database using custom queries and displayed them in other content.
    This is an easy approach to get such data without writing a module. All you need to do is assign the PHP input format filter to the node or block and paste your PHP code in it, and voila, you have dynamic content.
Daniel Gregoire

Securing file permissions and ownership | drupal.org - 3 views

  •  
    Security pre-flight checklist. Files.
Daniel Gregoire

Reducing server resource utilization for busy sites by implementing fast 404s in Drupal... - 3 views

  • // List of extensions for static files $exts = 'txt|png|gif|jpe?g|shtml?|css|js|ico|swf|flv|cgi|bat|pl|dll|exe|asp|xml'; // It is not an imagecache path, which we allow to go through Drupal if (!strpos($_SERVER['QUERY_STRING'], 'imagecache')) { // It is not our main feed page if ($_SERVER['QUERY_STRING'] != 'rss.xml') { // Is it a static file? if (preg_match('/\.(' . $exts . ')$/', $_SERVER['QUERY_STRING'])) // Just send a 404 right now ... { header('HTTP/1.0 404 Not Found'); print '<html>'; print '<head><title>404 Not Found</title></head>'; print '<body><h1>Not Found</h1>'; print '<p>The requested URL was not found on this server.</p>'; print '</body></html>'; exit(); } } }
  •  
    Fast Drupal 404 handling for static files.
Fabola smith

Computer Troubleshooting - Now at Your Ease - 0 views

  •  
    With the availability of online help at all times and everywhere, it's not surprising to see people going onto internet for any and all kinds of computer troubleshooting problems. Calling up vendors and taking appointments for the help and eventually...
1 - 20 of 460 Next › Last »
Showing 20 items per page