Skip to main content

Home/ Drupal for Developers/ Group items tagged cck fields

Rss Feed Group items tagged

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
Daniel Gregoire

Programmatically Create, Insert, and Update CCK Nodes | doug | CivicActions - 2 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

Programatically creating a CCK field in Drupal 6 | drewish.com - 5 views

  •  
    Quick 'n' easy, create CCK fields programmatically
Scott Blackburn

How to make CCK fields do some of the same tricks as taxonomy terms | !&# - 0 views

  • In Drupal, taxonomy.module implements hook_term to provide links among content which shares a given term. Site builders often use this feature to provide indexes and RSS feeds of their content. Taxonomy.module's purpose is to support the creation of controlled vocabularies which we can use to classify our site's content. If taxonomy.module were a prescription drug, this would be its "on-label" or indicated use. Using taxonomy.module vocabularies and terms to store essential data about our content is what I call an "off-label" use. You're not really creating a controlled vocabulary, and the term-node relationship in these cases isn't always classificatory. However, a clever web developer will use the tools that get the job done, and often taxonomy.module is the perfect tool for making this happen. Because this information is essential to your node's content, CCK fields are indicated for this use. However, CCK fields don't have built-in linking among nodes which share values for the same field. Also absent is any built-in RSS feed for a CCK field's value. This requires some theming and Views.
Daniel Gregoire

Wrapper ID (form-item) not displayed for Checkboxes / Radio Buttons CCK Fields | drupal... - 1 views

  •   if (!empty($element['#id'])) {    $output .= ' id="'. $element['#id'] .'-wrapper"';  }  else { // if we can't get the #id from $element['#id'] just build it from $element['#name']    $id=explode("[value]", $element['#name']);    $output .= ' id="'. $id[0] .'-wrapper"';  }
  •  
    Small fix for giving radio/checkbox form elements a proper ID on their wrapper. By default in 6.16 and CCK, no proper CSS ID is given to the wrappers of radio buttons and checkboxes, making it impossible to theme the layout of those elements in the form (specifically for me, the node edit forms).
Scott Blackburn

Feed API + Emfield Recipe | drupaltherapy.com - 0 views

  •  
    Here is a quick recipe that uses Drupal's Feed API, Feed Element Mapper, CCK and the Embedded Media Field to create independent embedded video nodes on your Drupal site by RSS. This is our first screencast and first contribution to the Drupal Dojo, hopefully you will find this interesting and try it out yourself.
anonymous

The Great Pretender: Making your data act like a field | Lullabot - 7 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.
  •  
    Dubai Independent Escorts Service Dubai Independent Escorts Agency Independent Escort In Dubai Independent Escort In UAE Independent Escort Service Dubai Independent Escort Agency In Dubai Independent Model Escort In Dubai Independent Indian Escort In Dubai Arab Call Girls In Dubai
Scott Blackburn

Limit Views-created block content by node author or current node | Geeks & God - 0 views

  •  
    Scenario One: Limit by author of current node Scenario Two: Limit source to CCK fields in the current node
1 - 10 of 10
Showing 20 items per page