cck

CCK NodeReference - Pass current user id as argument to selection view

Hi all, I'm trying to create a view to limit the options available to a user for a CCK NodeReference field. I want to pass the current user's ID as an argument to the view that selects the options for the CCK NodeReference field. Basically when the user creates a new item, I only want them to be able to reference a node which they creat...

Drupal 5 CCK field not loaded into node

[Drupal 5.22, CCK 5.x-1.10] I have a Sermon content type that accepts a CCK text field labeled Minister. After creating a new Sermon, the Minister field label is shown, but not the value. I've verified that the value is being stored in the database. I am logged in as user1 with all permissions, but the field still does not display. How...

Drupal: CCK ImageField, description not displaying

hi, I've added the description field to my Image CCK Fields (in my nodes). I filled the description field from back-end. However I dunno how to enable it in my front-end. I cannot display the descriptions. I checked, they are not hided by css. The HTML element doesn't exist. thanks ...

Add dynamic URL (or button) to each node in Drupal

I've used CCK to create a 'Travel Offer' content-type which basically just lists the details for a travel package. My question is how to have a button or link on each node (when the user views it) that will link to a url that includes the title of the current node (eg: example.com/requestQuote/Title_Of_This_Node). I haven't implemented...

Drupal, Views: can I use 1 filter, for many CCK fields ?

Hi, I'm using Views in Drupal. I want an exposed filter selecting the ndoes containing a specific word. But I noticed I cannot search more then one CCK field per filter. Since I want to expose it, I want an unique text-input field for all CCK Fields: is that possible ? At the moment I can only add a new filter for each CCK field. Th...

Drupal - How to update a CCK NodeReference field programmatically?

I'm trying to create a node (B type) & assign it to a A type node's CCK nodereference field using node_save() method. $node_type_A = node_load($some_nid); $node_type_A->field_type_B_node_ref[]['nid'] = $node_type_B_nid; $node_type_A = node_submit($node_type_A); node_save($node_type_A); As the result, a new B type node will be create...

How remove node ID [nid:n] in NodeReference fields

Hi. This is the same question of this link: http://stackoverflow.com/questions/1515722/removing-nidn-in-nodereference-autocomplete According with the first answer (Grayside) I've created my own module and activated. Then I create a new content, I look sth up in the nodereference field and finally select it -> it works (Doesn't appear ...

Drupal: CCK API Docs

Any good CCK API docs out there? I have seen http://api.audean.com/, but can't find what I want there. Basically, I need a function that takes a field name and returns what node type has that field. I wrote my own, but would rather make an API call. ...

Drupal CCK - Unlimited fieldsets

In Drupal CCK it is possible to set the Number of Values to 'Unlimited,' so that the user can click 'Add Another' and a new field will pop up. Is this somehow possible with a group of CCK fields as well? I need to have a textbox and dropdown linked together, and have my users be able to add an unlimited amount to the content-type. I'v...

Simulated click on "add more value" button of multi value cck field causes whole content form to submit

Hi I have a multi value cck field in my cck content type. I want to simulate click on "add another item" using jquery. which is like $('#edit-field-supp-quan-field-supp-quan-add-more').trigger('click'); but it causes whole content form to submit instead of adding extra multi value cck field. Manuall clicks are working perfectly. Can a...

Drupal: create a node with employee working hours

I have a bit complicated task. 1. I need to create a node with employee working hours (it's gonna be created for all users with role "employee"), which looks like this: Monday: From __ : __ To __ : __ Tuesday: From __ : __ To __ : __ Wednesday: From __ : __ To __ : __ etc. So, I'll have to create probably 14 CCK ...

Searching custom nodes' by field in Drupal?

Hello- Using Drupal on a project which I made custom node types in using the CCK. I want to be able to search the specific node based on a custom field the node has. So let's say I have this node type Article which has a field "myfield", I want to be able to search for Articles based on the myfield field. I understand the default searc...

Drupal - Use lightbox with Views (Rel attribute) - in output link

In Drupal I have two image fields, one to act as a thumbnail and the other the image that will open when the thumbnail is clicked. The only way I could find to link the two was to use the option for "Output this field as a link" and link to the image field. This works, so when I click the thumbnail it opens the larger image however I wo...

checkbox for Drupal CCK

Hi friends, I'm new at Drupal. love it so far :) I'm creating a CCK custom content type. I need to make a amenities list in checkbox format. so I made; File Type: Text Widget Type: checkboxes/radiobuttons and Allowed values list: onsite_dining|Onsite Dining meeting_space|Meeting Space business_center|Business...

using custom CCK fields in node + Drupal 6

Hi friends, I'm new at drupal. I created custom content type with CCK. Added some Phone, Address, Fax fields... Now I'm editing the related node. but in the node it just says print $content How can I use the custom fields I've created? maybe something like print $field_name ? anything like that? appreciate helps!!!!! ...

Drupal email users

I'm using Drupal 6.16: When a user creates an account on my site I have them select a category (ie children, youth, adult, etc). This is done with the select list box using the content_profile module. I have a content type that posts an announcement. In this content type is a check box that says 'email group'. Right now it does nothi...

Drupal 6 CCK - Having a textbox appear when 'Other' is selected

I have a special content-type that I have created, and one of the fields is a radio button list. The last element is named 'Other' and I would like to have a textbox appear and allow the user to enter in a non-defined value. Is this sort of capability provided by any sort of module, or is this something that needs to be coded by hand? ...

Grouping content by category - Drupal

Hi folks, is there a good way of grouping content up by category. I wish I could have a CCK category field. ...

Drupal cck and views

I have added a new content type event. Now, i have to make a view in which it shows a set of fields if the dateOfEvent (one of the fields) is less than the present date and some other set of fields of the 'event' content if the dateOfEvent is more than the present date. how can I do that in the views.. thanks in advance for helping... ...

Changing CCK content-types details results in numerous DB calls for the menu system

Every time I make a change in the details of a content-type it takes too long. I though it had to do with the fact that I had too many content-types and fields (~500), but when I load the devel module to see the queries that take that long I see: Executed 32212 queries in 12267.57 milliseconds. Queries taking longer than 5 ms and que...