For those who wish to discuss CCK development.
Age Range search with CCK + Views + NodeProfile
Hello, I'd really appreciate if someone can help me with this issue.
I have a profile for users, in this profile I have field "Date of birth" in which the users can enter the date (it is field of type Date).
I also have a computed field called Age, in which I calculate the value using the information entered in the date of birth field.
Finally I have a view in which a user can search persons, so, in that view I need a new field in which the users can search by range, something like this:
Age ranged: (then in a dropdown list)
x- 15-20
x- 20-30
x- 30-35
etc..
CCK_emailer: the field that is a verb
(Please see the attached 4 sketches)
The basic idea of cck_emailer is to create a cck field type that lets you define an email address to which to mail any new node created that implements the specific cck_emailer field type.
How could CCK replace webform, and would you want to even do this? The purpose of this post is to vet an idea. There is no working code yet. This is also not an attack of any kind on the webform module, I'm just using it for comparison of what this would recreate and in order to tell if this would be any better than what the webform module already does.
Read moreNew release : CCK 1.5
CCK 1.5 has just been released for both 4.7 and 5 branches.
Mainly small bugfixes, but more importantly, updated to work along with Views 1.6, that is just out of the oven too.
See changelogs on :
http://drupal.org/node/135834 (4.7)
http://drupal.org/node/135836 (5)
(erroneously posted in Internationalization group - sorry about that)
Read moreHow to propagate changes to columns managed by CCK...
Does anyone know how to do this? It seems CCK doesn't handle it for me. I have an existing module that previously had columns A, B, C, D, E, F managed by CCK. I have added column G for the new release, but existing instances of the field crap out on me since the column doesn't exist for that instance. How can I get CCK to add the column to existing instances?
Also, in a similar case, how do I change, for example a varchar length of 2 to 20 in an existing column for all instances?
Help! I have searched all over for the answer and can't find it!
Read moreIdea about signup/reply data for nodes and CCK fields + Views
I maintain the signup.module. This module has long struggled with the problem of how to flexibly define what fields are requested and/or required when a user signs up for something. I might have a slick solution, but I'm not sure if CCK can accomplish what I have in mind.
With 5.x CCK, you can assign any fields you want in whatever groups you need to any node type. My module could allow site admins to define the signup/reply form for any given node type as a specific group of arbitrary CCK fields. This field group would not show up on the node edit form. It would be displayed on the node view page itself, so each user could fill-in, submit, and optionally edit their own signup/reply. All fields would automatically be treated as "multiples" in terms of storage, 1 set of each field's values per user who replies, but displayed as single values for any given user viewing the node. When a user replies, the values of any fields in their reply would have to be associated with their identity (uid for auth users, email for anon).
Read moreFieldgroup Module
Hello,
I am running Drupal 5.1, and the latest CCK. The documentation for the latest CCK release states that the fieldgroups should be viewable in node output now, but it is still not working. I have to input a large amount of fields for many content types and need the fieldgroup feature to keep it manageable. I also need the fieldgroups to show up in the node. Does any one else have this problem, or any suggestions as to how to tackle this one?
Read moreCCK and the need for Data Import and Export
I've just finished reading Robert Douglas's excellent article on CCK. And two things struck me when reading about the data structures of CCK:
- With data that is so highly normalized, how will this impact data access of CCK nodes? Drupal is already very demanding of mysql and I wonder if this will slow down data access even more. Feedback?
- More and more, Drupal is approaching a web based version of a 4GL, where datesets can be defined and maintained. This makes Drupal more than a CMS; it is now a data access system. But one BIG need remains: a way to get data in and out of those datasets. We desperately need a data import/export system for Drupal that can handle these complex table and field relationships. Has any work been done in this regard?
Looking to donate my custom CCK Fields
I had some Custom CCK field types built for 4.7 . I want to give these to someone whom would be interested in maintaining them. I didn't write them. I am now on 5.x and would like to get them upgraded.
here they are...
fieldnode.module - add a node title and teaser to a Node
fieldtaxonomy.module - creates x number of Node Titles and or teasers form a Specific taxonomy.
fieldblock.module - add block contents to a node
Please let me know if anyone is interested in these.
Read morePostGIS in Drupal
Hello,
I've may have some time available in the next few months to devote to upgrading Drupal's GIS abilities. One area where I'd like to concentrate is exposing PostGIS data and functionality. In a nutshell, PostGIS allows storing arbitrary geometries (points, lines, polygons, multipolygons and combinations of those types) in database columns.
Read moreGeneric Multiple Value Handler for CCK Fields
This is my project proposal for the Summer of Code 2007. Better multiple value handling in CCK is needed and could be useful to a lot of people, so I am interested in having your opinion before I officially submit this project proposal to Google.
Read moreA public shared content type repository?
This is just an idea.
We've built sites on Mambo/Joomla in the past. mosforms, an extension to build and output custom forms and store the input much like CCK works for Drupal, was yet a simple, but great component to design site contact and other forms for Joomla. mosforms has evolved and is available as Fabrik - Joomla Application Builder now. There is nothing that might compete with our CCK here, but the last line of the published roadmap for Fabrik sounds quite interesting to me:
Read moreLullabot article: What is CCK - a view from the database
I just published a pretty long and thorough article describing the basics of CCK inner workings:
http://www.lullabot.com/articles/an_introduction_to_the_content_construc...
Hope you like it, and hope it is useful.
Read moreCCK 1.4
CCK 1.4 has been released for Drupal 4.7 and Drupal 5, and is available on the CCK project page.
This is essentially a bugfix release (notably fixes some annoying bugs / warnings for PHP 5 and/or MySQL 5).
Main new feature is a nice and customizable display for fieldgroups on node view (drupal 5 only)
It also gives field modules more thorough control on the definitions they export for Views module.
More info in the CHANGELOGs.
Read moreHow to add more fields to a linker table e.g. where a node contains a node-reference field?
Apologies for asking daft questions. I'm just about to attempt my first CCK customisation, and would dearly love some advice. I've been through the CCK developer's guide, and am confused!
So: I have two custom node types - organisation, and project. Each organisation is involved in zero or more projects; each project involves one or more organisations. So it's a many to many relationship. And so I've used the CCK node reference module. Great!
Read moreWidgets vs FAPI
From development list - Adrian Rossouw and Darrel O'Pry
On Tue, 2007-02-06 at 14:47 +0200, adrian rossouw wrote:
CCK exists of the following things for me :
- Field Types
- widgets and formatters
- Data model - consisting of the field types.
- Query builder - crud functions. - generates query from data model.
- Configuration interface - builds data model
I believe that we should integrate 1-3 into the forms api (and indeed
create the data api that way).
Yeah FAPI 3 !!
Read moreValue-add data fields
From the developer's list:
Dries >> So, if I understand correctly, you suggest that introducing more types (i.e. float, integer) and corresponding validation routines in core would be the first step. This makes sense to me, and shouldn't be too hard. Is anyone working on this -- or willing to work on this?
Adrian >>I think perhaps we should look at more semantic data types than just float and integer.
A good example of this would be a title type. Which defaults to textfield, and automatically does the plaintext validation and formatting on output.
Read moreData model
-- (from adrian rossouw in development mailing list)
Second phase : data model.
As I specified in my data model presentation at the last DrupalCon, we have a data model currently, it's just hidden in the form array structure.
We use an incredible amount of complex logic to try and determine the data model from the form array.
Just about all the complexity in form_builder comes from this process.
Read moreCCK in Core
There's a great discussion thread going on the developer list about how to move CCK to core. I thought I'd try to pull some of the ideas out here, into a wiki where people can hash over them. The ideas are flying fast and furiously and I'm sure I'm going to get some of them wrong, but heck, that's why this is a wiki. I'm going to try to pull out some of the basic concepts below, then let everyone go ahead and hack away at them.
The developers mailing list archives are at http://lists.drupal.org/archives/development.
Basic Concepts
Read moreA musician asks: which way should I go in Drupal 5.0?
I'm a musician and I'd like to pursue a couple of different potential business models for my web site, subscription and pay-per-track:
For songs I'd like the following:
- All songs must have a preview accessible to all, which is a shortened clip from the full track... doing this automatically would be nice but I'd be fine with making the clips myself.
- The ability to purchase the song for $1 via PayPal (or some other system)
<
ul>
Read moreSchema Changes
There is no real 'announcement' system for CCK developers, so hopefully everyone who maintains a CCK module is subscribed to this group and will see this item. I want to forewarn everyone that we are about to make changes to the tablenames for CCK due to a new problem that emerged in 5.x with user-configurable content types. The problem is that our current system is to create a table for each content type called 'node_example' where 'example' is the name of the content type.
Read more







