cck

Drupal (+CCK) permissions based on related node field

Suppose I have two content typs, "Job Listing" and "Job Application". A job application has a field (using the CCK module) to reference the job listing (a required field). Suppose the job application has a field "Status" with values like "new", "accepted", "rejected". I would like to set permissions so that the job application status ca...

Drupal: how to rate node filefields?

I have a node type called 'movie' which may contain several subtitle files using the CCK FileField module. Now I'm dealing with FiveStars module, I need to rate each subtitle separately! so the user should rate for subtitles associated with a movie, not the movie itself. confused enough! any idea? ...

Drupal CCK add another item callback

I'm trying to get the last field item to focus when doing a 'add another item' on a CCK multiple value field. Here's my code: $("#node-form table.content-multiple-table tr.draggable input[type='text']").live("keydown", function (e) { if (e.which == 13) { $(this).closest("table.content-multiple-table").siblings("div.content-add-m...

Drupal reserve checkbox module?

Hey, I have a drupal site I'm working on here: selkirk.treethink.net I have CCK and Views modules installed, so on the frontend you see the Request Work page created using CCK. On the backend admins and students can view all the work post through that form with the Views module. I need to add a checkbox that the person submitting the...

Drupal: fieldgroup_view_group to print multigroup in block

I'm trying to use the fieldgroup_view_group function to print a multigroup inside a block. The fieldgroup_view_group function looks like this: <?php function fieldgroup_view_group($group, &$node, $teaser = FALSE, $page = FALSE) { $group_name = $group['group_name']; $field_types = _content_field_types(); // Clone the node to pre...

Drupal: How to get a CCK field value when inserting a node?

I'm working on a registration system where someone can enter the number of participants they will be bringing in a CCK field. I want to, whenever a node type with that CCK field is added, grab the value of that field, then add it to a variable value I have in my variables table. Is the CCK value inserted into the field's table in the db...

Drupal CCK 3 Multigroup tables with views

Hi, Each node have CCK-3-dev multigroup with 3 fields. Can I use one of fields as table header? Values of this field are taken from Taxonomy. With a simple recipe example, where food Z and Y are 2 nodes with recipes and each node has multigroup with ingredient name (milk, fish), amount (numbers) and unit (g, kg). Is there a way to cre...

Drupal: Associating grouping more than one CCK field.

I have an article content type with a node reference CCK field that links to other articles (related articles) . I need to add a text field for each node reference that allows an admin to specify "why it's related". How do I go about this in D6? Articles can be related with other articles so it makes sense to have the "why it's relat...

Drupal join on taxonomy terms

I have a Drupal setup like this: Content type: Apartments Vocabulary: Areas, that can be used with Apartments. Content type: User profile, with a Content Taxonomy Field for Areas so users can select what areas they are interested in. I would like a view that shows all the user profiles that matches the apartments in their area. A "Us...

My products categories have (meta)data - Use taxonomies or implement them as content items?

I'd like to use the combo Drupal/CCK/Views to create a products catalog and I'm confused as to if I need to use taxonomies or not. My products could have a taxonomy, but each term in the taxonomy has information by itself. For example a product category might include pictures, text and links. As far as I can see, if I try to implement ...

Customize the way CCK Node Reference fields are displayed in Drupal

Node reference fields in Drupal are displayed as lists by default. Is there a way to change that? I'd like to output them as JSON so I can create a fancy JavaScript visualization. ...

How to build a multilingual Drupal site?

I'd like to build a Drupal site with multiple languages. What modules will I be needing and how would I go about designing my content types, views and menus so that everytime these appear in the correct language? Thanks! ...

Drupal : How to add javascript function on click event of a cck check box ?

I have added two fields one is check box and another one is text box to a content type and now i want to toggle the text box on clicking check box .Can any one help in doing so. ...

Translate a Field's Label in a Drupal Content Type

I'm trying out i18n with my Drupal 6 content types and the field values get translated ok, but not the field labels. Is there a way to translate this? ...

Drupal: On a product page display a slider with similar products

I have a content type "product" and would like to display an image slider with similar products. Would I have to build a view that selects "similar" products and display it in a block? Anything more practical? ...

How to only show one content type with Content access

I'm using the "Content Access" Module. I have created a user call "PriceUser" which I want to only be able to see the content of the content type "Price". ie "PriceUser" goes to "/admin/content" and can only view price content. so in order for "PriceUsers" to just view contentType "FundPrice" i need to uncheck "administer nodes" i t...

Drupal Imagfield/Filefield in custom form

Hi, i have created a module with this among others this function in it: <?php function ils_ladda_upp_form() { $form['upload'] = array( '#method' => 'post', '#attributes' => array( 'enctype' => 'multipart/form-data', ) ); $form['upload']['album_name'] = array( '#type' => 'textfield'...

How do I display many images (by imagefield) in all my nodes of a type?

The thing is that I have hundreds of nodes each with 4 to 12 images all of them around the same size in an imagefield but I want to order that so it looks at the end in a grid or something like that. I know that panels and views are the answer but I think I've seen all of the tutorials available but nothing. If anyone know where can I ...

make job Custom Search with cck and taxonomy

Hello There: Im building job website using drupal and some modules like job_search + cck + views + panels .... etc i added to jod node some cck fields like work type and salary and integrate with taxonomy (job: doctor,web developer, teacher ,worker .....etc) Im trying to make custom search that I can enter salary that i want in input te...

Create a "Products Listing" page that embeds a context-aware View of specific type of products

I have the following page structure: Product listing for type 1 |-> Product 1.1 |-> Product 1.2 ... Product listing for type 2 |-> Product 2.1 |-> Product 2.2 ... so I have created a content-type "Generic_Product_Listing" which has a field_type and would like to embed a view that only gets the products of that specific type. How can ...