cck

Measurement sheets in Drupal 6

人盡茶涼 提交于 2020-02-04 18:42:51
问题 I'm doing a project for a surveying company in Drupal 6. Ultimately, employees will need to enter measurements into a new content type. Currently they do it in a big Excel spreadsheet that has a bunch of macros to do calculations between cells (Meters to Feet, m^2, some pricing stuff). My question is: How would one go about replicating the functionality of this spreadsheet best in Drupal 6 , keeping in mind the amount of data the employees using this system gather varies between projects (I.e

Measurement sheets in Drupal 6

北城余情 提交于 2020-02-04 18:42:30
问题 I'm doing a project for a surveying company in Drupal 6. Ultimately, employees will need to enter measurements into a new content type. Currently they do it in a big Excel spreadsheet that has a bunch of macros to do calculations between cells (Meters to Feet, m^2, some pricing stuff). My question is: How would one go about replicating the functionality of this spreadsheet best in Drupal 6 , keeping in mind the amount of data the employees using this system gather varies between projects (I.e

Create multiple CCK nodes with single custom form in Drupal

拜拜、爱过 提交于 2020-01-13 19:12:07
问题 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 docs anywhere? Here are 3 possibilities I can see. I would love feedback on whether any of these would work, or if there are even better options. 1. start with

How to query cck field in drupal?

隐身守侯 提交于 2020-01-05 02:58:21
问题 I have two content types (job_post and application) linked using the node reference + node reference url nodes. When I click a link in a job_post node, a new application node is created, so that candidates can fill out their job application. My goal is to automatically copy the content of an cck email field from the referenced job_post node to a cck email field in the application node. To achieve this,I have created the following module: // Implementation of hook_perm() function mymodule_perm

Auto-updating width/length/area using jQuery and Drupal6

…衆ロ難τιáo~ 提交于 2019-12-30 11:48:23
问题 I'm using Drupal to create a measurement sheet (Measurement sheets in Drupal 6) and am at a point where I have all the fields in place, I just need to write some jQuery that auto-updates the appropriate field when the user enters data. Code below: jQuery(document).ready( function ($) { $('input').change( function() { $parent = $(this).parent("td").children("div").children("div"); length = $parent.children("div[id*='field-length-0-wrapper']").children("div.container-inline").children('div[id*=

Creating Drupal CCK content programmatically/ via API

二次信任 提交于 2019-12-30 04:56:29
问题 I am working with a Drupal 6.x system to create exercise / personal training programmes, and am using the CCK with content types of Exercise and Programme, where Programme contains a few header fields and a list of node references to the exercises it consists of. This works great and I can manually create programmes which work fine. I now wish to create a module which can generate these programs automatically based on a number of algorithms I have developed, the process will look like: Load

Using multiple form field widgets for the same field in Drupal

自作多情 提交于 2019-12-25 04:18:04
问题 I would like to be able to use multiple form field widgets for the same field and to be able to switch it based on session data from the user. But I am not really sure how to accomplish this. This is for Drupal 6. Any ideas on how to accomplish this? 回答1: You might be able to accomplish this with one of the field access modules but to do it properly you'd probably need to create a custom widget. Your widgets can return existing widgets by calling their handles, so your widget would more or

drupal cck date field question

点点圈 提交于 2019-12-25 02:48:05
问题 I've added CCK Date field to my node type using the Textfield with Date Popup wiget. The granularity is set to include Hours and Minutes. The display show two textareas, one for the date and the other for time. How do I override the time field to be a drop down? I can't see how I can do this via form_alter hook as my date field does not appear in the $form value. Thanks Steve 回答1: In your database, set your custom module's "weight" in the system table to be higher than that of CCK. If it is

checkbox for Drupal CCK

北战南征 提交于 2019-12-24 05:14:06
问题 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 Center and it creates Radio Buttons which only 1 selection :( How can I make it Check Box to give ability to select more than 1? Appreciate helps! 回答1: There as an option: Number of values You have

Drupal 5: CCK fields in custom content type

孤人 提交于 2019-12-23 20:18:58
问题 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" page, but when I load any node of this type with Devel module, I cannot see field attribute ( field_flag ) in node object. I can see it under "Dev Render"