cck

Drupal CCK Text field not saving.

Hey Guys, I've been trying to write a CCK Field based on the Text field. But if I create a standard CCK Text field with only 1 value. Then edit a content item for this type, the values are never persisted. When I go back in and edit the same node, the value isn't there. I checked the database and its not in the table for the CCK nod...

Drupal 6: display image with View in blog posts listing page...

Hi friends, I'm new at Drupal, love it so far :) I added Photo and Logo File field to blog entry with CCK. I need to display these images at blog post listing page. So at View Module, I added fields as below; At View: Content: Logo URL to file Content: Photo Path to file and it displays only names of files, but I need to display i...

Drupal 6 module for adding CCK-like fields to comments?

I'm needing to allow users of a site to add structured comments to nodes. Are there any stable modules out there for Drupal 6 that will enable me to do this? I'm thinking along the lines of being able to add CCK-like fields to the comment type. In an ideal situation the administrator would be able to alter/change the questions being aske...

Drupal 6: creating different profiles to list at custom page adding page and selecting as many as i want...

Hi friends, I'm a newbie drupal... I'm working on my first Drupal project. I need to make an events page for some conferences. I create event content type, and creating fields like date-place-title-etc with CCK. There are also speakers, can be up to 20. each speaker has photo-namesurname-position. same speaker can be added to more than...

Drupal 6: pre-defined variable for amount [count] of custom type items...

Hi friends, I'm a drupal newbie... I researched but couldnot find :/ is there any predefined variable that gives my CCK field value count? for example; I have field_logo_sponsor and I need to display all logo items. Now I have 5 item <?php print $node->field_logo_sponsor[0]['view'] ?> <?php print $node->field_logo_sponsor[1]['view']...

Drupal: Programmatically saving imagefield images

Hey there! I'm trying to write a sync function that saves some data to nodes, which works fine, until I try to save the thumbnail image associated with the node. I've managed to download the file and put it in my sites/default/files folder, but what's the best way to tell Drupal, "put this file in that CCK imagefield"? EDIT To clarify...

How do I set up filters in a Drupal view that apply across two different content types?

I have two different content types being loaded into a view. News, and reviews. Each of the content types has a drop-down box to select what category they fall into. ie. a review could be for a dvd, music, etc. and news could be music, cinema, etc. I want to the view to display some categories of news, and some categories of reviews,...

Drupal 6 CCK node form redirect issue

Hi, I am having trouble with a multi-step node form for a CCK content type. I set $form_state['redirect'] to a thank you page path, but it does not get redirected upon successful submission. Here is the code following documentation on the Drupal 5.x to 6.x form API at http://drupal.org/node/144132 function rnf_form_alter(&$form, &$form...

Drupal module for complex hours of operation / office hours

Background: I am building a website in Drupal that links together a wide variety of social service providers for the purposes of discovery, collaboration, and all that good stuff. The goal is to make a website that is simple to browse for consumers of these services and simple to update for providers of these services. The beta has been...

How to list CCK fields by content type in Drupal

To get a list of a content type's cck fields, I was hoping to use: drupal_get_schema('content_type_mycontenttype'); but that leaves out fields with multiple values. Is there a simple call to use to get such a list? ...

Unpredictable CCK field name in returned View data

I'm using views_get_view_result to directly access the data in a view. I've stumbled upon this odd behavior where cck fields are prefixed with the first field name as a query optimization. Explained here. What's bizarre though is that fields are named differently depending on whether I retrieve that data as Anonymous or as Admin. I'm...

how to access cck checkbox value from views .tpl

Subject for advanced views theming: 1) Create CCK integer field "field_checkbox" - Single on/of checkbox Allowed values 0|No 1|Yes 2) In views row-style .tpl <?php print $fields['field_checkbox_value']->content ?> doesn't print any value, why? Other fields output fine. Thank you in advance! ...

Drupal 6 - I am using drupal_execute to insert a CCK node into my site. Everything is working except taxonomy.

$form_state['values']['field_prx_mp3_labels'][0][value] = $mp3_labels; $form_state['values']['taxonomy'][0][value] = array('tags'=>array('1'=>'Music')); $errs = drupal_execute('prx_content_node_form', $form_state, (object) $nodeTmp); This is a Drupal 6 site. I am using drupal_execute to create a node programatically. The f...

How to add a Drupal CCK Custom Field which supports unique identification of multiple values

I need to create a custom field that supports multiple values which can be uniquely identified (beyond the delta field which changes when the values are re-ordered). I have created a module for the field and specified the two database columns that I would like CCK to use (one for the value and one for the ID) but I am not sure where the...

Wrong label for a nodereference in Drupal content-type

We have a content-type built using CCK. One of the fields is a node reference. The node picker is using a view to build the options. A few days ago, everything was working well. Today, it looks like all node reference fields using views to populate the selection options are displaying the wrong label. Every single label in the optio...

Drupal how to show CCK field in search result?

Hi! How to display custom CCK field (text or imagefield) in Drupal core search results page? Thank you in advance! ...

How do i create my own Token?

I use Rules-Module. I want to add 1 to a cck integer field on an action. Someone told me to create custom token doing this addition. So, I installed tokenSTARTER module. Now, how do i access the content profile (I load it in the rules chain) where needed cck field is in? ...

Drupal 6: getting CCK field value with php in a Block by View Module...

Hi friends, I'm a drupal newbie (mean it :) I have a Block, created with View Module. and this block content has CCK fields. I display any of field with Fields Box in View Module. It's cool. the issue is, one of the CCK field has a condition value for linking at homepage or not. So I need to get the value of field_homepage_linking CC...

Drupal 6: display CCK Field value with php in views_customfield

SORTED http://drupal.org/node/467190#comment-2068324 Hi friends, I've spent all day to find but can't find :( How can I display CCK Field value with php in views_customfield? I tried the ones below, but no result $node->field_homepage_linking[0]["view"] $node->field_homepage_linking[0]["value"] value_get('field_homepage_linking...

No title node in Drupal

I want to have a content type namely quote usign CCK. But quotes in general don't have a title. But since the title is a required field, how can I avoid being putting the title while creating a new node. ...