Content Construction Kit (CCK)

For those who wish to discuss CCK development.

Reverse Node Reference with Action

rkr@drupal.org's picture
public
rkr@drupal.org - Wed, 2008-07-02 12:35

Hi there,

a lot of requests in drupal forums address the backlinking of nodes being referenced by node reference (which is part of CCK). This can be achieved by nodereferrer or with views and additional argument handling code (which is in my opinion much more flexible).

While nodereferrer is by design read only i'm looking for a smart solution which extends the list of referencing nodes with a button „Link it!“.


Accessing CCK data from a custom module

public
davidm - Wed, 2008-06-25 18:19

I've posted a general item regarding using CCK from custom modules here..

http://drupal.org/node/274894 - Custom module using CCK

Help in this matter would be appreciated (and generally useful).

search module for CCK ?

Marcel Pamphile's picture
public
Marcel Pamphile - Sun, 2008-06-22 08:20

Is anyone working on a search module for CCK ? I might create a hack.

I'm also looking for a module that creates pull down select field on CCK . In 5.x the Addnode module was taking care of the pull down select box.


Is the core forum module still needed anymore?

public
specmav - Tue, 2008-06-17 09:13

I know that I will most likely be wrong about this, but with the advancement of CCK, Views, OG and Panels, is the forum module really necessary anymore? My idea being is that with all these "practically core" modules, isn't it feasible to create a forum with just these modules?

I can create a content type called "forum post" manually, set the taxonomy for the forums (granted containers would be an issue) and use views to custom tailor the data shown to the users. I can already create 8/10th's of the forum functionality with just that scenario. Unless I am missing something.

Drupal Contract Developer | Private

public
hieuho - Fri, 2008-06-13 03:35
Employment type: 
Contract
Telecommute: 
Allowed

I have a Drupal 5 site made for a film festival. I need help with the CCK and content types. I have three CCK content types (film, screening and program) that need integration in order to flesh out the catalog and calendar pages using PHPTemplate.

All the data is in and just needs to be handled properly through the CCK and Views.

Thank you.

Div wrapper for the body of a node?

public
arkepp@drupal.org - Thu, 2008-06-05 02:04

I apologize in advance if this is documented, but I was not able to find anything while searching. I use Drupal 5.7 and every field output by CCK appears to be wrapped by a div with sensible classes, except the body field. I believe I need a div around the body of the node to properly align the text relative to other fields. I thought I would be able to fix this in function content_view() in content.module, but apparently not(?). Can anyone point me in the right direction?

Updating Fields with Composite Data

liberatr@drupal.org's picture
public
liberatr@drupal.org - Tue, 2008-06-03 23:03

I have a custom module I inherited that implements its own CCK widgets to import videos, and the widget stores multiple columns in the database, but to the user, it all seems like one field.

I recently decided we needed to add a column to refer to the thumbnail, so I edited my 'database columns' operation in the hook_field_settings() function, and added a line in the hook_field() function, along with the logic I needed to fetch, display and validate the data.


Field API, field structure, and data migration

bjaspan's picture
public
bjaspan - Wed, 2008-05-14 22:08

Much has been said (http://groups.drupal.org/node/9297) about how fields should be structured in D7 core, what aspects of fields can be changed, and how those changes are implemented. It is (past) time to move forward on implementing fields in core and in this post I am proposing an answer.

Disclaimer: I make a lot of declarative statements in this post. Obviously I do not have unilateral authority; this is just a proposal.

Field storage


splitting long form into multiple pages (multipage cck)

public
safknw - Tue, 2008-05-13 07:35

Hi,
I'm working on a site which has a very long input form (a cck) , is there any way by which I can split in to multiple steps and save data in each step.

CCK or custom module?

matslats's picture
public
matslats - Mon, 2008-05-12 17:38

I have a CCK contentType who's fields don't correspond to the node/add form elements, so I want to put some code between the form submission and the the db INSERT.

This hack using hook_nodeapi doesn't work because $form isn't passed to nodeAPI, and CCK seems to insert the node regardless of, or before anything that happens through nodeAPI.

Having manipulated the form data, I also want a confirmation page. I already wrote a module to define the contentType, but stalled when I realised that my fields were not exposed to views.


Testing for CCK in Drupal 5

gordon's picture
public
gordon - Mon, 2008-05-05 01:23

I have done some work over the weekend and backported all the testing and crud files from the Drupal 6 version of CCK back to the Drupal 5 version.

I did this mainly to help with testing of the of the following patch to fix the performance issue in CCK

http://drupal.org/node/246084 => Extremely Poor Performance with CCK fields passing data to database => Content Construction Kit (CCK), content.module, critical, patch (code needs review)


Tabs for Mutiple CCK Fields

asugene's picture
public
asugene - Thu, 2008-04-17 00:39

What is the best way to break up a long single CCK form across several tabs? A recommendation of something not in DEV would be great. It is for a PROD site. Thanks.


CCK Integration for Panels

gordon's picture
public
gordon - Thu, 2008-04-10 01:23

I have just posted a patch which allows people to add a single field into a pane for much greater control over content layout.

See http://drupal.org/node/97375 for the patch to CCK


Question regarding CCK & Content Template

NonProfit@drupal.org's picture
public
NonProfit@drupal.org - Mon, 2008-04-07 16:43

Hi, this is, to be sure a simple question for anyone who knows even rudimentary .PHP, but even after most of an entire day, the solution continues to elude me.

I am building a custom content type in Drupal 6 where registered users can submit their events. Fields include event name, time & date, etc., as well as a e-mail field and the sponsoring organization’s URL(s). “field_email,” use the “Text Field” widget. “field_link”, logically uses “Text Fields for Title and URL.” These two are not required and both allow multiple values (unlimited).


CCK for dummies. Conversion tutorial

public
Artem - Sun, 2008-04-06 19:36

Hi All

I am slightly following the CCK possibilities for about a year already and I think I am able to try it eventually live as it seems to be a good solution to a number of my problems. Unfortunately I am not sure where to get started. I've got plenty of traditional blog posts on my site and I am not sure how to convert them to CCK nodes or whether there is such possibility at all.

Could you, please, tell whether it is possible not to start CCKeing from scratch, but to convert existing content into CCK nodes? Any pointers to tutorials would be highly appreciated.

Is There A Way To Display Only Part of a Vocabulary?

dewolfe001's picture
public
dewolfe001 - Thu, 2008-04-03 19:04

Hello Everyone,
Is there a way (a view, an existing module, a swell hack), to limit the display of a vocabulary in a node editor?
For example:

Countries (Vocabulary)
- Africa
   - Kenya
   - South Africa
- Asia
   - Japan
   - Thailand

Programmatically create a node with CCK fields?

public
ubuntu@drupal.org - Sat, 2008-03-29 07:35

I used admin GUI to create a new content type "my_type", then I added CCK fields. Does anyone know how to create a node of "my_type" using php programmatically?

I used drupal_execute() to create node before, but it requires a form id. In that case, the content type was defined by a module, which contained a form for the content type. I don't know what form id to use for a type created using GUI with CCK fields.

Another method of creating node is to use node_save(). I haven't figured out how to use either method for content type with CCK fields. Any help is greatly appreciated.

CCK Node Reference and revision

public
redben - Wed, 2008-03-26 17:05

I am on project where i am using nodereference and while i was working on linking two node types, a question came into my mind : How does nodereference handle node revision ?
For instance when we link node A to node B and sometime later someone creates a revision for node B, does nodereference keep a reference to the old node or to the new revision ?

CCK performance (or lack of)

gordon's picture
public
gordon - Sat, 2008-03-22 22:33

Here at Lonely Planet we have been looking into CCK for our own projects so we can create easily supported sites which don't need developer input to do simple things like adding additional fields.

But during this time I discovered how bad the performance actually is. Like everyone I thought that adding fields that were not multiple or shared you would get the best performance.

Well I was wrong, and spent a while making sure that I was correct. And I was.

So during some other enhancements I needed to fix the CCK so that performance was much better.


validation api module with identical rules for both Javascript and PHP

Matt V.'s picture
public
Matt V. - Tue, 2008-03-18 22:48

Moved to official ideas list at http://drupal.org/node/236469

I'm not a student, but I'm posting this idea as a project I'd like to see happen. The idea was inspired by Benjamin Keen's Really Simple Validation and PHP Validation pair of scripts. Those two scripts use identical rules to perform both client-side and server-side form validation using Javascript and PHP respectively.


Acidfree albums and Flash gallery

public
T Yang - Sun, 2008-03-16 08:27

I'd like to integrate acid free album support to flash gallery module and enable it to work with cck and image field in this year's Gsoc. I'm now a college student and I wish I can participate in this great project.

how to attach hidden CCK fields to the node

public
drupalprojects - Fri, 2008-03-14 19:42

Hi folks.

I'm about to create a simple module – I've named it nodegift. It allows admin to choose any content type and use all nodes of chosen content type as a “gift”. See mockup.

What percent of your content types have more than 10 fields?

greggles's picture
public
greggles - Mon, 2008-02-25 22:07
0%
13% (7 votes)
0.1-5%
9% (5 votes)
5-10%
16% (9 votes)
10-20%
9% (5 votes)
20-40%
18% (10 votes)
40-60%
18% (10 votes)
60-80%
5% (3 votes)
80-100%
13% (7 votes)
Total votes: 56

Add Field Permissions to CCK Core

public
KarenS@drupal.org - Wed, 2008-02-20 14:11

I'd like to get field permissions into CCK core in the D6 version. It won't be right away, it will be a phase II activity once the initial release is out the door.

One question is what a simple UI would look like, adding checkboxes for each field to the user permissions page is unwieldy.

I'm opening this page to stimulate some discussion, and hopefully ideas, on how to do this.

Some of the issues to be addressed:

  • What will the UI look like if we don't add checkboxes to the user permissions page for each field?

DabbleDB demo

moshe weitzman's picture
public
moshe weitzman - Sat, 2008-02-16 18:20

Six months ago, Dries linked to this DabbleDB demo from his blog. He hailed it as a vision for what CCK and Views could ultimately be. The demo is positively breathtaking in the flexibility of fields to morph and change. Further, the usability of the UI is outstanding. Everyone in these group really ought to watch the demo, and discuss what small changes we can make to get closer to this.

Some starting points:

  • Can we design a flow whereby node_import module could suggest and then create the needed CCK fields to hold the incoming data?
  • Can we add a metric ton of flexibility to CCK whereby we can take a field and move it into a new content type (i.e. the demo moves Person into a 1st class object) and move fields (and data) between content types (in the demo, the Company field moves over the new Person 'content type').
  • Could we get a View created automatically for each content type that has the right exposed filters automatically? And then a UI which progressively shows those exposed filters in the 'query by example' method in the demo?
  • The demo has a notion of saving ad hoc queries. Our equivalent is Views Saved Searches. Should this be a core feature of Views, or otherwise better integrated?

Release Date for Embedded Media Field

aaron's picture
public
aaron - Fri, 2008-02-08 21:32

Alex UA and I have set the date for an official release for Embedded Media Field, for next Friday, February 15. We're going to quash as many of the outstanding bugs as possible before then, and could really use some help from interested people, as far as testing and patching things up.

Once the official version is released for d5, we'll also begin development for the d6 release.

See http://drupal.org/node/213456 for release status.


Moshe's observations on D6 CCK

moshe weitzman's picture
public
moshe weitzman - Thu, 2008-01-31 17:10

Update: I enabled comments in case people prefer that: Moshe

I applied yched's formatter patch and then wrote down my list of bugs, feature requests, and questions for D6 CCK. I have not looked at much code yet. I plan to submit patches for many of these, and thus learn the new design intimately. I'll get started tonight. I would appreciate if Karen/yched/all could add comments and hints to each item as needed. I don't want to head down rat holes that you've already travelled.


Popup Dialogs and CCK

starbow's picture
public
starbow - Thu, 2008-01-31 01:04

I have been playing with the CCK head and my modal dialogs, and you can see the result at:

http://www.citris-uc.org/blog/tao/drupal_modal_dialogs_and_cck (2 minute loop)

I am particularly happy with the new ability to detect if the drag-and-drop table has been modified, and to offer to save the current progress.

Aside: Those of you paying close attention might have noticed me cheating. The /admin/content/types page doesn't actually have "fields" links. But it should (http://drupal.org/node/215623)


drupal 5 drupal 6 difference regards fieldsimage thumb

public
albies - Tue, 2008-01-29 12:25

regards drupal 5 I not know if with cck for to have a field image where one can insert
more images and also have a thumb below the principal image (see attached)
is necessary to change the core or if with drupal 6 this is possible (but how).

not know why I cannot see my file attached (I not have permission?)
here same image
http://xs.to/xs.php?h=xs223&d=08040&f=cck-thumb927.jpg

How to share CCK data accross separate Websites.

public
jgsacris - Mon, 2008-01-28 12:44

I am working on a project for an association of institutes. Each institute should have their own website with their own self-administered content. The problem is that some of this content, for example employees, should be aggregated on a separate website that functions as portal for the whole association. What would be the best strategy to handle this. I have considered three possible solutions:
1.- Create a template for CCK that publishes the information in XML and then create a module similar to the RSS reader module that aggregates the information.

A real newbie question...about cck and multi-part forms.

public
mjh5598 - Fri, 2008-01-25 20:52

I got the hang of cck which is really cool by the way. I have 3 questions that pop up:
1. how to i create a multi-part form ???
2. how do i do a back button to go to the previous page and have it remember the info i added?
3. how do i can i create a dropdown of fields/nodes i created before with dropdowns and use that info in a new version of the form???

has anyone seen a good online video tutorial that i can tap into..that guy rob from the awakened voice learning center is the best with his online stuff..

thanks
mjh

contemplate with custom tabs

macrocosm's picture
public
macrocosm - Tue, 2008-01-22 01:14

I have been trying to work something out for the past few days thats really starting to kill me! It should be so simple, but im stuck. I have a functioning body template (cck + contemplate) for one of my content types, which works great. I have coded in a set of tabs which show a field or group as a tab, this works great; however for one of my tabs I require a more css stylized layout with a multiplicity of fields. I've been banging my head trying to figure the best way to accomplish this.


Pledges and Donations

samrose's picture
public
samrose - Mon, 2008-01-21 19:41

I'm interested in being able to set up a pledging system, that can enable donation bounties as a content type, and allows people to first pledge, then be billed if pledges reach a capped amount, or have no one billed of pledges do not reach an amount.

Is it already possible to do this with existing modules (like e-commerce and cck)? If not, I am committed to producing this capability, and would feedback from this group on suggestions about how to approach from a module creation standpoint


Choice of mandatory fields: How to in CCK

droople's picture
public
droople - Fri, 2008-01-18 20:50

I have 2 fields called "local tele" and "non-geo telephone" for the phone field for cck

so users can enter either a 01233 or 08xx number, or even both.

Of these 2 fields I want at least one to be mandatory when creating the node

  1. so if a user doesn't enter either of the two, a "required field" error is rendered and node won't submit

  2. If a user enters "local tele" then non-geo can be ignored and vice-versa

  3. if user enters both fields, then both will appear on the node

thanks


Select field for exposed view filter

ebrittwebb's picture
public
ebrittwebb - Fri, 2008-01-18 16:03

I'm sure this is a dumb question, but hopefully someone will humor me. How do I mimic the exposed filter for group type select on http://groups.drupal.org/groups? Is it a Content Taxonomy field, or something else?


CCK storage testsuite

public
yched@drupal.org - Sun, 2008-01-13 23:59

I created a GHOP proposal to lay grounds for a simpletest suite of CCK field storage in http://drupal.org/node/209391.

This Wiki page aims at defining the actual list of tests that would constitute an exhaustive suite when we have an overall structure. The actual scope of the proposed GHOP task is not to implement all these tests, but to provide the overall structure and reusable code (note the 'Repeat the above' items), and actually code, say, the first two 'dark bullets' items below.

Desktop CCK

dewolfe001's picture
public
dewolfe001 - Tue, 2008-01-08 17:46

I saw this great piece from John VanDyk : http://www.sysarchitects.com/node/64

We've been having problems with our staff and their connectivity to the server. That is a separate track of what we are running down. But this got me thinking: could I write a desktop application?

<

ul>

  • A standalone application that can reside on the desktop
  • Negotiate login to the site
  • Get a CCK content-type schema and produce a form
  • Open up a form with ActiveX controls
  • Post to the site via an API call (or something like a PHP cURL submission)


  • Advanced Profile Wiki

    public
    Michelle - Sat, 2008-01-05 05:21

    This wiki page is to create a roadmap for the Advanced Profile module. I already had a pretty good idea of what I wanted based on response to my tutorials but it helps to have it down on "paper". This is just a start and mostly a "mind dump" at this point. I will flesh it out more based on feedback.

    How do I selll event tickets on a ecommerce platform

    droople's picture
    public
    droople - Thu, 2007-12-20 01:40

    I have a promoter who has a few shows he promotes annually.

    each show has 3-4 venues and each venue different price

    how do I sell tickets for such a setup>

    thank you


    INDIVIDUAL STORES for media ecommerce | Personal

    droople's picture
    public
    droople - Sat, 2007-12-15 02:09
    Employment type: 
    Part time
    Employment type: 
    Contract
    Telecommute: 
    Allowed

    Hi guys

    I have a group of artists that are promoted by one manager(me). I want them to sign up on the manager's site (a drupal core site) eg manager.com and be able to create their own music stores. eg http://manager.com/artist/tom, http://manager.com/artist/amy or http://artisttom.manager.com, http://artistamy.manager.com

    The registration page should have two options

    1. artist
    2. fan

    while registering a username should be chosen that will be the permanent url for the artist or fan

    artists will have the "artist" before their name in the url


    RFC: Best practices for managing indexes (particularly on cck tables)

    greggles's picture
    public
    greggles - Mon, 2007-12-10 21:21

    As a site goes live and we do performance tweaking and benchmarking one of the common results is adding database indexes. I post this into the CCK group since one of the common sources of slow queries is for queries against the CCK tables. For example, a site that has a block that queries a field table to look for information about that field for every page load can quickly make its way into the slow query log. Adding an index to the field is likely to be the best solution.


    Locationfield module: does this exist?

    webchick's picture
    public
    webchick - Fri, 2007-12-07 08:02

    Wondering if this has been built yet, or if I should start from scratch.

    I'm looking for a CCK text field that takes a "nice" value for location such as "Montreal, QC" and converts it in the back-end to "45.518376,-73.56308" so that it can be displayed in a Google Map, or searched via proximity or etc. I've attached a mock-up so you know what I mean. Ignore the form_alter stuff at the top; this was when I was thinking it was going to be its own form element but Eaton advised me to go with CCK field instead (user form would be possible w/ something like Bio module).


    Improved CCK for D6

    tourguide@drupal.org's picture
    public
    tourguide@drupal.org - Mon, 2007-12-03 01:49

    KarenS who just organized a Drupal User Group, in Central IL, gave a presentation to it's founding members explaining a much improved CCK for the D6 release. CDMUG took notes and posted them to share with the Drupal community - check out our milestone 100th node post. ;-)


    cck form data validation

    public
    bluepresley - Thu, 2007-11-15 05:53

    I'm not sure if I'm posting in the right place, but here goes.

    I created a very simple CCK based node which is use to add web sites links to a database. there is the "name", the actual "web address", and "body" describing the link and site.

    I want to make sure I can validate the "website address" field as a real website (ie www.example.com) instead of someone putting garbage in there.

    signup.module should support cck dates: groups.drupal.org help wanted

    moshe weitzman's picture
    public
    moshe weitzman - Tue, 2007-11-13 05:34

    Now that groups.drupal.org is using date.module for its events, we really need someone to help signup module understand this date format. Please read this issue and consider writing the patch.


    Bounty - poly field

    sime's picture
    public
    sime - Sun, 2007-11-11 15:47

    I need a field module developed.

    I'd like to define a field as being composed of multiple existing fields. Further, I want to make my new complex field "multiple". So each field instances inside the complex field are linked together persistently. I've exhausted my search, I don't think a solution exists.

    A use-case is where you want to set up some micro-content, like an address form, and want this micro-content to be consistent across all nodes you use it in.


    Colorpicker CCK module

    dwees's picture
    public
    dwees - Sun, 2007-11-04 02:45

    So I'm the developer of the colorpicker.module and I've finished some major changes to the core module which effect the colorpicker_cck.module. Unfortunately I'm not familiar with the CCK API, and I'm wondering if someone can help me update my sub-module.


    master-detail howto???

    public
    drupalista@drup... - Tue, 2007-10-30 00:54

    Hi,
    I am digging deeper every day, but find it hard to translate the drupal and cck world into concepts I know from database applications and their toolkits, so I would like to ask, if maybe anyone would like to explain, how to create a master-detail view in a form?

    I am trying to connect users, locations and events (I am not the only one, as you can see in the event group) and I guess the nodeprofile package might be helpful with this, but I really would appreciate a short explanation if this can be done with CCK only...

    Embedded Media Import

    aaron's picture
    public
    aaron - Thu, 2007-10-18 18:56

    Embedded Media Field now ships with Embedded Media Import, for importing photosets, playlists, and the like. If you install that module, admins will have the ability to import photosets from Flickr as individual nodes. Just make sure the 'Allow import' checkbox on the content type (which must have a field defined with Embedded Media Field) is checked, proper permissions are given to editors, and look at the settings on the new tab at /admin/content/emfield/import.


    Syndicate content