cck

Drupal - How can I use CCK to keep a local node copy of Aggregator items?

Hey, I received an learning project from my brother that includes: Create a Drupal site that employs Aggregator, CCK, and Views modules in the following way: Aggregator will fetch an RSS feed from an arbitrary source Views will allow you to create excerpts from the Aggregator materials, as well as links to orignal articles Determine i...

How Do I Style An Email Field in Drupal?

I have a list of Staff Members in Drupal6. I need to style a node such that the email field of a staff member displays as "Contact [First word of Full Name field]". Clicking it causes a mailto:// link to open. BTW, I know that's not a recommended procedure because a contact form or a captcha would be more effective, but my client desire...

Create multiple CCK nodes with single custom form in Drupal

I need a form which will allow creation of several related nodes at the same time. All of the nodes involve CCK fields. I would like to use as much of CCK's built-in validation, submission, input widget, and security functionality as possible/practical. What is the best way to accomplish this in Drupal 6? Are there 'best practices' or ...

drupal 6 - can i use one exposed views filter to search/filter several similar cck fields?

i have a decent understanding of configuring drupal and using modules for basic stuff, but just getting into module development and overriding functions and stuff due to my very basic understanding of php and mysql. i have a custom content type ('books') and a 3 cck field for genres (primary, secondary, tertiary). i'd like a user to be ...

Automatically refresh Drupal node after hook_view

I'm trying to show updated results for a CCK Computed Field. The computation is based on fields in another node, so are not being automatically updated. So: I'm calling node_save($node) in hook_view, which does make the adjustment but the results don't show until I refresh the page. Is there a way to refresh the page automatically, o...

Drupal: Custom Content Type validation

I've created a custom content type with CCK. If I need to add some custom code for validating fields of this content type's record form, where do I add the code and which functions are best for this task? ...

Drupal : adding status field to node

What's the best way to create in Node additional status field that is a list of fixed string values, and is visible to users, but modifiable by admins only? I am limited to Drupal 5, but interested in Drupal 6 solutions too. ...

Changing CCK Title for Form

By default a CCK form creation has a title of the form Create [Your Content Type Name Here] I want to change mine to Register for Such and Such It was suggested that I could use string-override, but I can't find the string to replace. I've also tried writing code to form_alter, but can't seem to figure out how to get the "title" ...

Drupal node selector strategy?

I've got a content type called "contact". One user can create hundreds of contacts. I need another list of contacts stored somewhere else. Options: Use a view Create a new content type called "contacts" (with an s) and add a selector or node reference so you can just tick the nodes you like. 2 sounds like the best option to me, but I...

Theming CCK node in Drupal 5

I need to add a few links to the bottom of node (custom type) form in Drupal 5. I've tried contemplate module, but it actually deals only with custom fields (contemplate template doesn't contain node title, description, taxonomy fields) - while I need to add links below or above actual body field. How can I make this possible? ...

Drupal Node Hierarchy

Hiya, I'm having a problem working out how drupal structures content. I have a content type called "Artists" and then i have "Songs" i want my URL's to be: www.foo.com/{artist generated url}/{song generated url} i.e. www.foo.com/led-zeppelin/stairway-to-heaven/ {artist generated url} -> is created automatically by pathauto from ...

drupal w CCK - how do I rename node submission buttons

Hi there, I have made a custom node type for event registration. I have used themes (template.php to all a custom tpl.php for the form) to customise the look of the form. Using workflow and actions / triggers, people can register for my event, and the event manager gets a notification email and can log in and see a view of who has reg...

how can I best display a list of affiliate links in Drupal?

I have a Drupal 5 website on which I want to display a list (or grid) of affiliate links to different products, sales and offers. Each 'affiliate product' node will have a title, description, an image and a URL. When either the image or URL link is clicked, the user should be redirected to the URL. I've gotten close to this, using a v...

Drupal6: Every node view of a certain type leads to 404 error

For some reason, trying to view any node of a certain content type leads to a 404 error. When viewed in a View table, they display just fine. What could be happening? Viewing the database with phpMyAdmin shows the data just fine. The problematic node type was created with CCK. ...

CCK field prefixes?

How would I add a prefix to a text field? For example, I have a field called "website" which is currently displayed like this: website: ____________ Where _ is the input field. With the module "field markup" i can add prefix and suffixes but they apppear AFTER the _ or before the website part. I need to end up with: website: http:// ...

Removing [nid:n] in nodereference autocomplete

Using the autocomplete field for a cck nodereference always displays the node id as a cryptic bracketed extension: Page Title [nid:23] I understand that this ensures that selections are unique in case nodes have the same title, but obviously this is a nasty thing to expose to the user. Has anyone had any success in removing these bra...

How do you migrate CCK fields between environments in Drupal?

The Content Construction Kit (CCK) is one of the most useful Drupal modules. It allows you to easily add custom fields to a content type. However, these new fields are created through Drupal itself and stored in the database. This means that if you change a CCK field in your development environment you need to manually make the same cha...

Drupal linking a Username to a Node

In Drupal I wish to create a content type as a bio for a user. When you click on a a user name on the site it takes you to there bio. An example I have found online is below. This article has the authors name Jeff Robbins. Jeff Robbins name links to his profile. How would you go about doing something similar? It does not seem be using t...

Drupal - How to display the list of new fields created from CCK on home page

I'm building a freelance job site using d6. I've created a new content type called "Freelance Jobs" using CCK which contains various fields such as Job Description, Skills, Start Date, End Date etc. I want to display the most recent jobs on front page in a listing manners as it is displayed on most job sites. Following is an example of...

Drupal 6 CCK: export/import content types

I've been having a problem with a certain content type. (Any time I try to access a node of that type, I get a page not found error.) So I thought I'd export and re-import, to see if that changes anything. I went to admin/content/types/export, and selected the content type in question. Then I deleted that type. Next, I went to admin/co...