cck

Can I have nodereferences with thumbnails in Drupal?

Can I have nodereferences with thumbnails? By default I only get title+link. ...

Drupal permissions not showing for custom content type

I have a custom content type in Drupal which was created using CCK. The create/edit permissions for this type are not showing up in the node module permissions, although other cck types are. This content type is also bound to a module, but this module doesn't have any admin screens, all node creation is done through the standard cck in...

Drupal CC/Views - new fields not showing up in CCK

I am working with CCK/Views for the first time, and I am stuck on a detail... I have created a custom type called Outlet (as in Retail Outlet). I added 5 new fields to my new custom type. I created some content in my new Content Type. Then I went to Views to Add a new "Node" type View for my New Content Type. I click on Fields to sele...

Drupal Background Image as Block or Node

Hi There. I am having trouble wrapping my head around how to make editable background images in my custom Drupal 6 theme. My client wants to use a different background image on each main section on his website (with multiple content types: page, blog, image gallery), and to keep everything dynamic, I want the background images to be edi...

Link between CCK field and view

I want to use a view to select nodes in a content type field. This view must receive an argument that is another field of the content type. Can someone explain me how to pass the argument from the field to the view? Excuse my poor english ...

Panels-style UI for arbitrary CCK fields?

I have a Drupal content type that has unlimited photo, textbox, and external link CCK fields, but while fields themselves can be reordered via drag-drop (i.e. photo B before photo A), I can't arbitrarily order amongst fields (i.e. photo B, link A, photo A, text A, link B). Panels is awesome, with its drag and drop, and just what I'm loo...

Drupal - Grabbing and Looping NID of CCK Nodereference field

Hello, cant seem to work out how i grab multiple nids of a node reference field. $node->field_name[0]['nid'] picks up the node id of the cck node reference field. however when that cck node reference field has more than one value i get stuck! my php is abit sketchy atm so working with arrays and loops is being quite difficult! here ...

Drupal 5: CCK fields in custom content type

I have module that implements custom content type via NodeAPI hooks (hook_insert, hook_update etc). I want to add CCK field to this content type and populate it via hook_nodeapi calls like create or update (to show content nodes in Views). Problem is, I cannot access CCK fields for this content type. Sure, it's enabled on "Manage Fields...

DRUPAL: adding CCK image fields to other CCK fields

hi, can I add a CCK image field to another CCK field ? I would like to add icons for each item i add. At the moment I can only write the description. This would be very cool functionality! ...

cck remote file (image) field - I want to keep the cached copy of the image when the node is deleted

I use the Remote File module for a cck field displaying a remote image. It works with a known issue: images are reloaded on every edit http://drupal.org/node/395256 And as i do tests with lots of nodes and delete them afterwards, the images cached in filesystem become deleted too. Is there a way to tell filefield(?) not to delete them?...

Drupal using views with CCK custom fields

I've got a Drupal site which uses a custom field for a certain type of node (person_id) which corresponds to a particular user. I want to create a view so that when logged in, a user can see a list of nodes 'tagged' with their person_id. I've got the view working fine, with a url of my-library/username but replacing username with a diffe...

Getting error when trying to save CCK text fields in Drupal.

Invalid argument supplied for foreach() in /var/www/sites/all/modules/cck/content.module on line 1022. Entered text appears to work on save but does not display when returned. Appears to work on staging server sometimes, but not production. ...

Add HTMl to CCK within Drupal

Hello im a newbie at using Drupal, and have come across a block in my progress. I have been using CCK to add new content types to my forms. I was wondering if there was any way to add to the form that is generated so that i may contain the elements and also insert visual html code like head rules etc. I have dabbled with the hook_form_a...

Drupal Nodereference in a custom form

I have a custom Drupal FAPI form that supports a fairly complex workflow and I would like to add a Nodereference field to it. Although I've found people who have included Nodereference fields on custom forms, I have been unable to find any examples of the FAPI declaration for the field (other than this question which uses a text field w...

Creating a draft version of the page before publishing in Drupal 6?

I've been looking for a good way to handle revisions in Drupal, but I am yet to succeed. For some reason there is no built in way to save a draft (that I've found so far), and the modules I've tried so far do not seem to fully work. First I tried save_as_draft, which seemed to do almost what I wanted, and if I'm not mistaken, also handle...

Adding Google Map to Contact Info Page in Drupal

I'm trying to display a Google Map inside a drupal page. The map will only have the business location marker on it, with no need for a user to submitted their own markers. So far I've loaded the Gmap, Location, and CCK modules. I've attempted to enable a location field for Page content types, which allows me to input an address, but thi...

Where is cck "number of values" data stored?

I have a cck field that needs to allow a different number of values depending on the role of the currently logged in user. I'd like to find where the "number of values" data is stored for a cck field so that it can be dynamically changed when the node edit form is displayed. ...

Drupal Hierarchical Content

I am currently looking at using either the Taxonomy or CCK module on my Drupal site as a means to create a hierarchical system. However, I'm a little confused on which one would best suit my needs, or if there is something else that would work better. Basically, there will be probably 70 or so "mini-sites" on the website I'm working on,...

Combining multiple content types into a single search result with Drupal 6 and Views 2

Hi all, I need to create a somewhat advanced search functionality for my Drupal 6 site. I have a one-to-many relationship between two content types and need to search them, respecting that relationship. To make things more clear... I have content types TypeX and TypeY. TypeY has a node reference CCK field that relates it to a single n...

Allowed Values list in drupal CCK Fields

Hello, I'm basically looking to simply print out each of the allowed values in a CCK field.. i know the allowed values are stored inside a text field within the table: 'content_node_field'. the values are then stored within 'global_settings' I'm looking to somehow print out each individual allowed value using a PHP loop. however wit...